Upgrade 2.2 -> 2.4
Ondřej Surý
ondrej at sury.org
Wed Mar 30 14:14:12 UTC 2011
On Wed, Mar 30, 2011 at 10:07, Anthony Prades <toony.debian at chezouam.net> wrote:
> On 03/29/2011 09:25 PM, Henrique de Moraes Holschuh wrote:
>>
>> On Tue, 29 Mar 2011, Ondřej Surý wrote:
>>>
>>> I have just tested the upgrade from 2.2 to 2.4 on my server and it's
>>> still quite complicated even when the spool is empty :-(.
>>>
>>> We need to work on that since almost all cyrus-*-2.2 packages were
>>> left in the Install/Conf-files state and purging them removed some
>>> files from -2.4 packages.
>>>
>>> I'll try to do more serious testing, but it seems that we will need to
>>> upgrade scripts in 2.2 as well.
>>
>> Actually, I think we have some outstanding nastyness in 2.2 with
>> security implications that deserves a look as well, but I have not found
>> time to work on that at all. It is all in the BTS.
>>
>> It is possible to use preinst to safeguard against installing without the
>> unfixed 2.2 packages, and avoiding data loss is a damn good reason to do
>> that. OTOH, if all that happens is a broken package that --reinstall
>> can fix, we can probably document that in {NEWS,README}.Debian, plus the
>> upgrading docs.
>>
>
> Hi,
>
> during my personal test, I wrote preinst script to backup all Cyrus
> databases into "/var/backup". This is available there:
> https://github.com/toony/pkg-cyrus-imapd-2.4-toony/tree/debian-sid-upgrade
>
> I can commit this as a starting point.
>
> In all cases, I think that backuping before upgrade is a "damn good reason"
> too.
Well, I wasn't speaking about the databases (yet), but about files
which get removed by purging the 2.2 packages:
At least /usr/lib/cyrus/cyrus-db-types.active gets removed by postrm
script, also the statoverrides gets removed (which is bad) - this is
just for cyrus-common and cyrus-imapd packages... Full diff between
pbuilder states is attached. I'll try similar test for the rest of the
packages now and report back.
Ondrej
--
Ondřej Surý <ondrej at sury.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.2-purged.diff.gz
Type: application/x-gzip
Size: 18817 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cyrus-imapd-debian-devel/attachments/20110330/816e90b7/attachment.bin>
More information about the Pkg-Cyrus-imapd-Debian-devel
mailing list