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


Groups > linux.debian.bugs.dist > #944290

Bug#916696: initramfs-tools: search for nonexistent resume device

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#916696: initramfs-tools: search for nonexistent resume device
Date 2019-02-10 18:40 +0100
Message-ID <xq1fb-415-9@gated-at.bofh.it> (permalink)
References <x62xc-7Pl-13@gated-at.bofh.it> <xoCVz-11q-5@gated-at.bofh.it> <xpQjL-5yL-1@gated-at.bofh.it> <x62xc-7Pl-13@gated-at.bofh.it> <xpQjL-5yL-1@gated-at.bofh.it>
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

On Sun, 2019-02-10 at 06:31 +0100, Trek wrote:
> On Wed, 06 Feb 2019 21:21:57 +0000
> Ben Hutchings <ben@decadent.org.uk> wrote:
> 
> > The RESUME variable doesn't have to be set in any particular file.
> > Please check with:
> > 
> >     grep -rw RESUME /etc/initramfs-tools/initramfs.conf \
> >         /etc/initramfs-tools/conf.d \
> >         /usr/share/initramfs-tools/conf.d/
> 
> it's empty
> 
> 
> > If it's definitely not set, then please:
> > 
> > 1. Upgrade to initramfs-tools version 0.133 (I just uploaded this so
> >    you will have to wait a few hours for it to be available)
> > 2. Run "update-initramfs -u -v >initramfs.log 2>&1"
> > 3. Look in initramfs.log for "Calling hook resume" and send the
> >    messages after that
> 
> thanks for your help, now I've managed to debug and fix the resume hook:
> when all the swaps are ephemeral, it finishes the for-loop, but the
> last if-construct doesn't check the ephemeral variable
> 
> I include a patch, tested with and without an ephemeral swap:
> - the second block (-79,9 +83,10) is the actual fix

If you would actually send me the log messages I might understand this
fix, but as it is I don't.  I do need to understand it before I will apply it.

Ben.

> - the first one (-63,9 +63,13) is only to be safer, as it
>   checks /dev/random too and it stops searching /etc/crypttab when the
>   device is found
> 
> ciao!
-- 
Ben Hutchings
The world is coming to an end.	Please log off.


Back to linux.debian.bugs.dist | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#916696: initramfs-tools: search for nonexistent resume device Ben Hutchings <ben@decadent.org.uk> - 2019-02-06 22:30 +0100
  Bug#916696: initramfs-tools: search for nonexistent resume device Trek <trek00@inbox.ru> - 2019-02-10 07:00 +0100
    Bug#916696: initramfs-tools: search for nonexistent resume device Ben Hutchings <ben@decadent.org.uk> - 2019-02-10 18:40 +0100
      Bug#916696: initramfs-tools: search for nonexistent resume device Trek <trek00@inbox.ru> - 2019-02-10 23:40 +0100
        Bug#916696: initramfs-tools: search for nonexistent resume device Ben Hutchings <ben@decadent.org.uk> - 2019-02-10 23:50 +0100

csiph-web