[Bug 983805] Re: Resume boot script fix makes /bin/resume unnecessary (kernel's internal swsusp)

A Dasgupta 983805 at bugs.launchpad.net
Wed Apr 18 22:45:46 UTC 2012


Frozen version :  This is frozen until bugs are found.  (This post contains
the patch and the next post the full script.)

Boot script:   scripts/local-premount/resume

Summary of changes from current initramfs-tools production version:

- /bin/resume is not used any more and its function of echoing
  major:minor on to /sys/power/resume is done in the script itself

- The major and minor device number is found using the stat built-in
  of busybox

- The check logic is identical to that of original /bin/resume (which
  means not only block but also character special files are allowed!)

- Device TYPE detection method:  Tries blkid first for RESUMEDELAY
  seconds, and if that fails then falls back to the original behaviour of
  calling wait-for-root with a wait value of RESUMEDELAY seconds
.

** Attachment added: "Patch file for frozen version"
   https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/983805/+attachment/3091727/+files/initramfs-tools-resume-boot-script-diff.v6

-- 
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/983805

Title:
  Resume boot script fix makes /bin/resume unnecessary (kernel's
  internal swsusp)

Status in “initramfs-tools” package in Ubuntu:
  New

Bug description:
  This patch to scripts/local-premount/resume makes the C program
  /bin/resume unnecessary (from klibc-utils, source resumelib.c).

  The source shows that C program /bin/resume is simply echoing
  major:minor[:offset] onto /sys/power/resume, which is exactly
  what is done in this patch, but using shell commands.

  This patch is against initramfs-tools_0.99ubuntu12, but
  the file scripts/local-premount/resume has stayed the
  same for quite a while (at least since maverick).

  I will also post the full script file.
  .

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




More information about the foundations-bugs mailing list