[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#632627: Re[2]: resume file




Ben Hutchings <ben@decadent.org.uk> escribió:

On Wed, 2013-07-24 at 15:57 +0400, Askar Safin wrote:
> I think this file should be updated every time the package
"initramfs-tools" is reconfigured.

Also, ideally, initramfs should be rebuilded every time user changes
fstab. But, I think this is very hard to reach.
Also, I think, every tool which updates fstab, should call initramfs
rebuilding (if swap is changed and hibernation is enabled).
In particular, every package configuration script which updates fstab
should trigger initramfs-tools reconfiguring.

I think there is only one such script, which is the postinst script for
linux-base which made a one-time update of configuration files to use
UUIDs.  It updated the initramfs-tools resume file too.

But I wonder whether this configuration file is really needed for most
system.  Couldn't we use blkid to find the swap partition automagically?
(The configuration file would still be necessary if there are multiple
swap partitions.)

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

Hi Ben, Askar,

thanks a lot for your replies. I will update the uswsusp.config and
uswsusp.postinst scripts to write that file and then call
update-initramfs script. I will use UUIDs in that file (when available).

Best regards,
kix.
Rodolfo García Peñas (kix)
http://www.kix.es/


Reply to: