[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#474691: Can't resume from swap file hibernation (as opposed to partition)

Package: initramfs-tools
Version: 0.91e
Severity: wishlist
Tags: patch

To resume from a swap file within a partition using the original swsusp, you find the block offset of the swap file header using e.g. swap-offset from the uswsusp package, and add "resume=<dev>" and "resume_offset=<blocks>" parameters to the kernel command-line. Unfortunately this parameter is not recognised by the initramfs scripts (so it would only work if you booted without an initramfs).

diff --git a/resume b/resume
index d997f81..8a41f83 100755
--- a/resume
+++ b/resume
@@ -34,5 +34,5 @@ fi

if [ -e /sys/power/resume ]; then
       # hardcode path, uswsusp ships an resume binary too
-       /bin/resume ${resume}
+       /bin/resume ${resume} ${resume_offset}

Reply to: