initramfs-tools: resume from disk broken with LVM swap
- To: maximilian attems <max@stro.at>
- Cc: debian-kernel@lists.debian.org
- Subject: initramfs-tools: resume from disk broken with LVM swap
- From: Nikolaus Schulz <microschulz@web.de>
- Date: Thu, 3 Oct 2013 16:26:15 +0200
- Message-id: <[🔎] 20131003142615.GA3474@zorro.zusammrottung.local>
- Reply-to: Nikolaus Schulz <microschulz@web.de>
- In-reply-to: <20130927110533.GA3724@zorro.zusammrottung.local>
- References: <20130925014943.7856.77098.reportbug@zorro.zusammrottung.local> <20130926093045.GA22976@stro.at> <20130926204416.GA358@zorro.zusammrottung.local> <20130927084905.GB11166@stro.at> <20130927095253.GD11166@stro.at> <20130927110533.GA3724@zorro.zusammrottung.local>
Ping?
On Fri, Sep 27, 2013 at 01:05:33PM +0200, Nikolaus Schulz wrote:
> On Fri, Sep 27, 2013 at 11:52:53AM +0200, maximilian attems wrote:
> > $ zcat /boot/initrd.img-$(uname -r) |
> > cpio -i --to-stdout --quiet conf/conf.d/resume
> > RESUME=UUID=2806fd03-ddfe-43b6-a339-b4bb051c20d4
This does not find my swap partition upon resume.
> > diff --git a/init b/init
> > index cb832ff..7990977 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/${RESUME#UUID=}"
> > + esac
> > ;;
> > resume_offset=*)
> > resume_offset="${x#resume_offset=}"
> > --
> > 1.8.4.rc3
This patch is inconsistent with the resume hook, isn't it?
The hook adds a plain RESUME=UUID=... while here you use the
/dev/disk/by-uuid/ symlink.
I have tested using that symlink in /etc/initramfs-tools/conf.d/resume:
RESUME=/dev/disk/by-uuid/2806fd03-ddfe-43b6-a339-b4bb051c20d4
And it does not find the swap partition on resume. I guess the same
applies to the resume=* kernel arg as well.
I don't know if that's correct, but as I have already said, the fix for
bug #568877 in base-installer suggests that using the UUID for swap
partitions on LVM is broken. This has also been discussed three years
ago in initramfs-tools bug #576490.
> Uhm, I don't have resume=* specified on my kernel cmdline. I never had,
> on the machine in question at least, I just verified w/ etckeeper. To
> be honest, this makes me scratching my head a bit. :) Isn't that
> supported?
It is my understanding that it is.
> PS. It seems that debbugs/lists.debian.org eats my emails. Again. :/
> Need to look into that.
(Switched to alternate email address for now.)
Nikolaus
Reply to: