Public bug reported:

PROBLEM: if swap partition isn't created for some reason during OS
installation (e.g. user plans to create swap partition after
installation, e.g. in another hard drive, or simply forgets to create
swap partition) and user creates swap partition after the installation,
then hibernating works fine, but during the resume user loses all
unsaved data, because Ubuntu doesn't resume from hibernation and simply
erases all hibernated info :(((

SOLUTION: swap partition with hibernation data should be detected automatically 
in initrd (initramfs) image.
 If it's hard to realize autodetection of swap partition with hibernation data 
during system startup, then mkinitramfs (and maybe update-initramfs) script 
should at least check if swap partition is specified in 
/etc/mkinitramfs/conf.d/resume or /etc/mkinitramfs/initramfs.conf. If the swap 
partition isn't specified there, then specify it, so user will have working 
hibernation/resuming  after linux kernel image is reconfigured or installed.

Also the reconfiguration of linux kernel image (so, mkinitramfs or
update-initramfs scripts) shoud at least give a warning if swap
partition, specified in /etc/mkinitramfs/conf.d/resume or in
/etc/mkinitramfs/initramfs.conf doesn't exist.

Finding and writing swap partition into /etc/mkinitramfs/conf.d/resume
is already done in initramfs-tools package configure script, so, I think
it's easy to fix this bug and I can write needed patch for initrd
startup scripts or mkinitramfs script if you don't have free time for
this :)

** Affects: initramfs-tools (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed
** Affects: Baltix
     Importance: High
     Assignee: Mantas Kriaučiūnas
         Status: Confirmed

** Also affects: Baltix
   Importance: Untriaged
       Status: Unconfirmed

-- 
swap partition with hibernation data should be detected automatically in initrd 
or mkinitramfs should check if swap partition is specified in 
/etc/mkinitramfs/conf.d/resume or initramfs.conf
https://launchpad.net/bugs/50437

--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to