diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2020-01-15 23:02:19 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2020-01-15 23:02:19 +0100 |
commit | f52f14252cd69368ec56cb8b960a256363b08efb (patch) | |
tree | c5951916161de7879549b62a02670024a8fada0c | |
parent | 6e5b1852be0247803ea070a6708010a0d3c2bc3e (diff) | |
download | mkinitfs-f52f14252cd69368ec56cb8b960a256363b08efb.tar.bz2 mkinitfs-f52f14252cd69368ec56cb8b960a256363b08efb.tar.xz |
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.
-rwxr-xr-x | initramfs-init.in | 2 |
1 files changed, 1 insertions, 1 deletions
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 |