Comment 28 for bug 50437

Revision history for this message
maximilian attems (maks-debian) wrote : Re: [Bug 50437] Re: Resume from hibernation may fail because swap partition UUID does not match /etc/initramfs-tools/conf.d/resume

On Mon, Sep 09, 2013 at 09:09:17PM -0000, Martin Pitt wrote:
> Would it not be better if we wrote/updated conf.d/resume during update-
> initramfs, so that it adjusts the initramfs' UUID even if the admin
> changes the swap partitions? In that script we could also remove
> conf.d/resume if we detect cryptswap, as resuming from hibernation won't
> work with cryptswap anyway AFAIK?

It should just be a hook so that update-initramfs calls it everytime
and not a postinstall script that runs only once on install.
Will propose hook script in next 24h.

A bit nasty is the upgrade scenario, but it should not write into /etc,
as it would just write into the initramfs.

Best,

--
maks