Bug#773157: systemd-cryptsetup-generator does not like crypttab option tmp=ext2

Michael Biebl biebl at debian.org
Sun Aug 16 18:33:29 BST 2015


Control: tags -1 - patch

Hi!

Am 15.12.2014 um 05:55 schrieb Jerad Simpson:
> Package: systemd
> Version: 215-7
> Severity: normal
> Tags: patch
> 
> The following configuration causes boot to wait 1 minute and 30 seconds
> before starting an emergency root shell.
> 
> /etc/crypttab:
> vg0-tmp_crypt /dev/vg0/tmp /dev/urandom tmp=ext2,cipher=aes-xts-benbi,hash=sha512,size=512,noearly
> 
> /etc/fstab:
> /dev/mapper/vg0-tmp_crypt /tmp ext2    rw,nosuid,nodev          0    2
> 
> In the has_option function of cryptsetup-generator.c, the following line:
> if (f[l] != 0 && f[l] != ',') {
> 
> can be changed to:
> if (f[l] != 0 && f[l] != ',' && f[l] != '=') {
> 
> This cures the problem on my systems, but a more in-depth patch might
> actually respect the filesystem type listed in /etc/crypttab. 

Right, I don't think this patch is sufficient, thus removing the patch tag.
There was a bug filed upstream in the mean time at
https://github.com/systemd/systemd/issues/952
so further dicussion should move there.

Regards,
Michael



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



More information about the Pkg-systemd-maintainers mailing list