Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #59563

Bug#883735: initramfs-tools: automatic resume doesn't work for lvm swap partitions

From James Cowgill <jcowgill@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#883735: initramfs-tools: automatic resume doesn't work for lvm swap partitions
Date 2017-12-07 01:00 +0100
Message-ID <uTRLA-6R2-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Package: initramfs-tools
Version: 0.130
Severity: normal

Hi,

I had noticed this bug for quite a while now, but since I rarely turn my
machine off I left investigating what the problem was until now.

Every time I boot my laptop, it prints a lot of messages like this,
before eventually giving up:

Begin: Waiting for suspend/resume device ...
Begin: Running /scripts/local-block ... done
[...]
Begin: Running /scripts/local-block ... done
Gave up waiting for suspend/resume device.

I traced this down to the swap device being on an LVM partition on my
laptop. The script which automatically determines which device to resume
from stores the blkid in the initramfs, but unfortunately the lvm2
local-block script does not know how to activate LVM partitions based on
blkid. This means the swap device is never created and the initramfs
will never be able to find it.

Is it possible (and a good idea) to store the /dev/mapper path instead
of the blkid when the swap partition is on LVM?

I managed to solve my specific issue by manually setting RESUME to the
correct /dev/mapper path.

Thanks,
James

Back to linux.debian.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Bug#883735: initramfs-tools: automatic resume doesn't work for lvm swap partitions James Cowgill <jcowgill@debian.org> - 2017-12-07 01:00 +0100
  Bug#883735: marked as done (initramfs-tools: automatic resume  doesn't work for lvm swap partitions) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2017-12-07 01:10 +0100
  Bug#883735: Re: Bug#883735: initramfs-tools: automatic resume doesn't work for lvm swap partitions James Cowgill <jcowgill@debian.org> - 2017-12-07 01:30 +0100
    Bug#883735: Re: Bug#883735: initramfs-tools: automatic resume doesn't work for lvm swap partitions Ben Hutchings <ben@decadent.org.uk> - 2017-12-07 02:40 +0100
      Bug#883735: Re: Bug#883735: initramfs-tools: automatic resume doesn't work for lvm swap partitions James Cowgill <jcowgill@debian.org> - 2017-12-11 12:40 +0100
  Processed: Re: Bug#883735: Re: Bug#883735: initramfs-tools:  automatic resume doesn't work for lvm swap partitions "Debian Bug Tracking System" <owner@bugs.debian.org> - 2017-12-07 02:40 +0100
  Bug#883735: initramfs-tools: automatic resume doesn't work for lvm swap partitions Vladimir K <pzs-fs@yandex.ru> - 2018-01-15 17:00 +0100
  Bug#883735: marked as done (initramfs-tools: automatic resume  doesn't work for lvm swap partitions) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2018-07-19 02:30 +0200

csiph-web