ref: f52f14252cd69368ec56cb8b960a256363b08efb
parent: 6e5b1852be0247803ea070a6708010a0d3c2bc3e
author: Sören Tempel <soeren+git@soeren-tempel.net>
date: Wed Jan 15 17:02:19 CST 2020
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.
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -299,7 +299,7 @@
}
/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