[pkg-cryptsetup-devel] Bug#809814: Bug#809814: cryptsetup: does not decrypt a split /usr as required by initramfs-tools >= 0.118

Guilhem Moulin guilhem at guilhem.org
Sun Jan 10 23:36:24 UTC 2016


Control: tag -1 moreinfo

Hi Hans,

What's your init system?  Could you also attach your /etc/fstab?  I'm
unable to reproduce this in a fresh install (automated from the lastest
daily CD image [0]) using systemd the attached partitioning script.

Cheers,
-- 
Guilhem.

[0] http://cdimage.debian.org/cdimage/daily-builds/unstable/current/amd64/iso-cd/debian-testing-amd64-netinst.iso
-------------- next part --------------
dev="${DEVICES%% *}"
parted -s $dev mklabel gpt

home=$(mkpart $dev primary 32M)
usr=$(mkpart $dev primary 512M)
var=$(mkpart $dev primary 384M)
root=$(mkpart $dev primary 100% +boot)
mkfs.ext4 -L / $root

for p in $home $usr $var; do
    echo -n xxxxxx | cryptsetup luksFormat --key-file=- $p
done

setup_crypttab <<-EOF
	home    $home   none    luks,retry=1
	usr     $usr    none    luks,retry=1
	var     $var    none    luks,retry=1
EOF
for dm in home usr var; do
    mkfs.ext4 -m0 /dev/mapper/$dm
done

setup_fstab <<-EOF
	LABEL=/             /       ext4    defaults  0   1
	/dev/mapper/home    /home   ext4    defaults  0   2
	/dev/mapper/usr     /usr    ext4    defaults  0   2
	/dev/mapper/var     /var    ext4    defaults  0   2
EOF

# vim: set filetype=sh :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20160111/a660fa38/attachment.sig>


More information about the pkg-cryptsetup-devel mailing list