[Bug 1644975] Re: Resume from disk (swapfile) fails
Wladimir Palant
1644975 at bugs.launchpad.net
Tue May 30 15:23:09 UTC 2017
I can confirm that the following statement in
https://help.ubuntu.com/community/SwapFaq#Why_do_I_need_swap.3F is
wrong:
> The hibernation implementation currently used in Ubuntu, swsusp,
needs a swap or suspend partition. It cannot use a swap file on an
active file system.
In fact, swsusp supports offsets just fine, and so does initramfs-tools
- mostly. The only thing blocking hibernation to a swap file from
working is that check in /usr/share/initramfs-tools/scripts/local-
premount/resume script. It calls wait-for-root which returns "ext4"
because no offset has been passed in. So the script will just assume
that no hibernation occurred and continue without resuming. While I
opted for simply removing the check, I strongly suspect that Ryo's patch
will fix the issue just as well.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1644975
Title:
Resume from disk (swapfile) fails
Status in initramfs-tools package in Ubuntu:
Confirmed
Bug description:
Well, hibernation with swap file doesn't work while hibernation with
swap partition works perfectly fine with the exactly same
configuration and hardware.
The reason is that when resuming from swap file, initramfs script
can't correctly detect the machine are hibernated from the last shut
down.
And I investigated the issue and found this patch solved
https://bugs.launchpad.net/ubuntu/+source/initramfs-
tools/+bug/554009/+attachment/1366060/+files/resume.patch) for the
hibernate to work.
And it isn't applied to the package. I'd like to help this is really
applied to the official package.
In short, my setup is swapfile inside the system filesystem (LUKS +
LVM2 + ext4).
Also, I roughly followed this tutorial to prepare this configurartion
that: https://ubuntuforums.org/showthread.php?t=1042946
I've opening this bug because the original bug report is closed and
getting no response...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1644975/+subscriptions
More information about the foundations-bugs
mailing list