[Bug 1750763] Re: local-premount/resume script broken, resume fails
Launchpad Bug Tracker
1750763 at bugs.launchpad.net
Tue Mar 20 15:07:34 UTC 2018
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: initramfs-tools (Ubuntu)
Status: New => Confirmed
--
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/1750763
Title:
local-premount/resume script broken, resume fails
Status in initramfs-tools package in Ubuntu:
Confirmed
Bug description:
On bionic, the initramfs pre-mount/resume script contains this call to
/bin/resume:
/bin/resume ${DEV}
Unfortunately, the ${DEV} variable is never set, causing all resumes to fail, with this error in initramfs.debug:
+ /scripts/local-premount/resume
+ PREREQ=
+ [ -z UUID=16195e13-9fb3-41b2-9671-fb4e1df1ff93 ]
+ [ ! -e /sys/power/resume ]
+ . /scripts/functions
+ . /scripts/local
+ wait-for-root UUID=16195e13-9fb3-41b2-9671-fb4e1df1ff93 5
+ SWAPTYPE=swsuspend
+ [ -x /bin/plymouth ]
+ plymouth --ping
+ [ -n ]
+ /bin/resume
Usage: /bin/resume /dev/<resumedevice> [offset]
This seems a porting bug: the Debian version
(https://anonscm.debian.org/cgit/kernel/initramfs-
tools.git/tree/scripts/local-premount/resume) calls
local_device_setup(), whioch sets DEV. This call is missing in the
Ubuntu (bionic, 0.130ubuntu2) version.
In my case, a simple
DEV=$(resolve_device "${resume}")
also solved the issue, but I guess the Debian solution is nicer.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1750763/+subscriptions
More information about the foundations-bugs
mailing list