Public bug reported:

In recent versions of initramfs-tools-core, the hibernation resume
script (/usr/share/initramfs-tools/scripts/local-premount/resume) is no
longer +x, so it's silently skipped during boot, causing resume after
hibernation to fail.

I'm not sure when this change was introduced.  All I can see is that it
worked fine on 18.04, but that it's broken in current 19.10-dev.

╰─▶ ls -la /usr/share/initramfs-tools/scripts/local-premount/resume
-rw-r--r-- 1 root root 1,5K apr 29 09:24 
/usr/share/initramfs-tools/scripts/local-premount/resume

Unpacking the initramfs confirms this:

╰─▶ unmkinitramfs /boot/initrd.img-5.0.0-13-generic initramfs

╰─▶ ls -la initramfs/main/scripts/local-premount/
total 32K
drwxr-xr-x  2 bas bas 4,0K mei 20 10:49 ./
drwxr-xr-x 10 bas bas 4,0K mei 20 10:49 ../
-rw-r--r--  1 bas bas  246 mei 20 10:29 ORDER
-rwxr-xr-x  1 bas bas  270 mrt 12 04:53 btrfs*
-rwxr-xr-x  1 bas bas 4,1K apr 29 09:24 fixrtc*
-rwxr-xr-x  1 bas bas  226 mei  3 07:49 ntfs_3g*
-rw-r--r--  1 bas bas 1,5K apr 29 09:24 resume

╰─▶ cat initramfs/main/scripts/local-premount/ORDER    
/scripts/local-premount/btrfs "$@"
[ -e /conf/param.conf ] && . /conf/param.conf
/scripts/local-premount/fixrtc "$@"
[ -e /conf/param.conf ] && . /conf/param.conf
/scripts/local-premount/ntfs_3g "$@"
[ -e /conf/param.conf ] && . /conf/param.conf

** Affects: initramfs-tools (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- resume afte hibernation fails because resume script is never executed
+ resume after hibernation fails because resume script is never executed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1829726

Title:
  resume after hibernation fails because resume script is never executed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1829726/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to