local-premount/resume script broken, resume fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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/
+ PREREQ=
+ [ -z UUID=16195e13-
+ [ ! -e /sys/power/resume ]
+ . /scripts/functions
+ . /scripts/local
+ wait-for-root UUID=16195e13-
+ 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:/
In my case, a simple
DEV=
also solved the issue, but I guess the Debian solution is nicer.
Status changed to 'Confirmed' because the bug affects multiple users.