[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 05:38:02 UTC 2012


Further Update:  Not a bug fix, but more code cleanup (the diff is
shorter) making the checking logic identical to that of the original
resumelib.c.

This post contains the diff, and the full script in the following post.
This version should be preferred over the one in post #4/#5. 
.

** Attachment added: "Patch with further updates"
   https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/983805/+attachment/3087499/+files/initramfs-tools-resume-boot-script-diff.v3

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