Bug#724554: initramfs-tools: ignores $RESUME device from /etc/initramfs-tools/conf.d/resume
Hello,
On Thu, Sep 26, 2013 at 10:44:16PM +0200, Nikolaus Schulz wrote:
>
> Stir. Put a cherry on top. Serve chilled by hibernating and then
> restarting the machine. The machine should discard the resume image in
> the swap partition and boot normally, thereby crashing all processes
> that were running. Done! ;)
Thanks for the verbose description! (:
Could you please test bellows patch
You need to patch /usr/share/initramfs-tools/init and of course
regenerate initramfs.
This doesn't fix it for LABEL, but should at least for UUID now:
(Not sure if lvm hook does reference the link but worth a try)
>From a0993ac47d423e39ca3b5c13ae898262d9ef817b Mon Sep 17 00:00:00 2001
From: maximilian attems <maks@debian.org>
Date: Fri, 27 Sep 2013 10:43:57 +0200
Subject: [PATCH] init: parse UUID for resume arg
This should unbreak lvm resume arg for the case of:
"Make sure you have a LVM volume group ready. Slide in a swap partition
as a logical volume. You should have something like
RESUME=/dev/mapper/vg0-swap_1
in your /etc/initramfs-tools/conf.d/resume, and a similar entry in your
/etc/fstab. Check that you have initramfs-tools 0.114 installed, and
update your initrd, if you haven't done so already. Next, check the
$RESUME that's configured in your initrd like so:
$ zcat /boot/initrd.img-$(uname -r) |
cpio -i --to-stdout --quiet conf/conf.d/resume
RESUME=UUID=2806fd03-ddfe-43b6-a339-b4bb051c20d4
"
Reported-by: Nikolaus Schulz <ns@htonl.de>
Signed-off-by: maximilian attems <maks@debian.org>
---
init | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/init b/init
index cb832ff..d49e9ee 100755
--- a/init
+++ b/init
@@ -133,6 +133,10 @@ for x in $(cat /proc/cmdline); do
;;
resume=*)
RESUME="${x#resume=}"
+ case $RESUME in
+ UUID=*)
+ RESUME="/dev/disk/by-uuid/${ROOT#UUID=}"
+ esac
;;
resume_offset=*)
resume_offset="${x#resume_offset=}"
--
1.8.4.rc3
--
maks
Reply to: