From f52f14252cd69368ec56cb8b960a256363b08efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Wed, 15 Jan 2020 23:02:19 +0100 Subject: init: create cryptsetup locking directory The LUKS2 cryptsetup format uses a locking mechanism, see the "LUKS2 header locking" section in cryptsetup(8) for further information on this mechanism. The mechanism requires a locking directory, if it is not present it will be created automatically. Unfortunately, cryptsetup emits a warning when creating it. To silence this warning message make init create the directory. --- initramfs-init.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initramfs-init.in b/initramfs-init.in index eaacb13..374c352 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -299,7 +299,7 @@ prepare_zfs_root() { } /bin/busybox mkdir -p /usr/bin /usr/sbin /proc /sys /dev $sysroot \ - /media/cdrom /media/usb /tmp /run + /media/cdrom /media/usb /tmp /run/cryptsetup # Spread out busybox symlinks and make them available without full path /bin/busybox --install -s -- cgit v1.2.3