[pkg-cryptsetup-devel] Bug#907201: Bug#907201: cryptsetup-initramfs: Asks for disk password twice unless 'debug' is passed to kernel command line

Matthias Klumpp mak at debian.org
Fri Aug 24 22:48:57 BST 2018


Am Fr., 24. Aug. 2018 um 23:39 Uhr schrieb Guilhem Moulin <guilhem at debian.org>:
>
> Control: tag -1 moreinfo
>
> On Fri, 24 Aug 2018 at 22:45:40 +0200, Matthias Klumpp wrote:
> > Obviously no Plymouth was shown here. The log looks normal to me.
>
> Ah right, plymouthd isn't started yet when you're dropped into the
> initramfs shell, so you'll need to start it manually:
> `/scripts/init-premount/plymouth`.
>
> Are you able to reproduce this in a Debian system?  I just fired a fresh
> & minimal sid VM with cryptsetup-initramfs 2:2.0.4-2 and plymouth
> 0.9.3-3 and
>
>     root at kvm-23941:~# cat /etc/crypttab
>     root_crypt UUID=69498061-2e79-48a3-b637-655690cb4d16 none luks
>     root at kvm-23941:~# cat /etc/fstab
>     /dev/vda1 /boot ext2 defaults 0 2
>     UUID=67d6c067-545f-40e5-8f7d-e852e2490f0a none swap sw 0 0
>     UUID=9945b9d7-bade-4df5-bd7c-8822a1a37274 / ext4 defaults 0 1
>     /dev/sr0 /media/cdrom iso9660 ro,noauto 0 0
>     root at kvm-23941:~# cat /proc/cmdline
>     BOOT_IMAGE=/vmlinuz-4.17.0-3-amd64 root=UUID=9945b9d7-bade-4df5-bd7c-8822a1a37274 ro quiet splash
>
> In that VM I only get the plymouth prompt (if I remove ‘splash’ I get a
> single console prompt).
>
> Are you sure the first (dummy) prompt comes from `/scripts/local-top/cryptroot`,
> and not from another initramfs script?  What is being prompted exactly?

I attached screenshots from the two prompts. Your comment got me
thinking though, so I pressed ESC on the first prompt and ended up in
the GRUB menu.
So it looks like the first prompt is from GRUB trying to mount the rootfs...
Now I need to figure out why it does that - that passing "debug" to
the kernel command-line prevents the message from being shown is
weird, but probably also GRUB related.

> Also, your busybox doesn't seem to include fold(1), unlike the one from
> buster.  But that's most likely unrelated.

The busybox setup is more comparable to Ubuntu in PureOS - I need to
look whether we can maybe get rid of that divergence.

Cheers,
    Matthias

-- 
I welcome VSRE emails. See http://vsre.info/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: password-prompt-1.png
Type: image/png
Size: 2327 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cryptsetup-devel/attachments/20180824/12117cf0/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: password-prompt-2.png
Type: image/png
Size: 2649 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cryptsetup-devel/attachments/20180824/12117cf0/attachment-0001.png>


More information about the pkg-cryptsetup-devel mailing list