[Bug 1750763] Re: local-premount/resume script broken, resume fails

Benjamin Drung 1750763 at bugs.launchpad.net
Fri Oct 4 11:30:06 UTC 2024


Thank you for taking the time to report this bug and helping to make
Ubuntu better. We appreciate that this bug may be old and you might not
be interested in discussing it anymore. But if you are then please
upgrade to the latest Ubuntu version and re-test. If you then find the
bug is still present in the newer Ubuntu version, please add a comment
here telling us which new version it is in.

** Changed in: initramfs-tools (Ubuntu)
       Status: Confirmed => Incomplete

-- 
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:
  Incomplete

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