pmbootstrap install: fix cryptsetup warning (MR 1984)
Create /run/cryptsetup before running "cryptsetup luksFormat" to fix: WARNING: Locking directory /run/cryptsetup is missing!
This commit is contained in:
parent
06d91897da
commit
108ed0f28b
|
@ -33,6 +33,9 @@ def format_luks_root(args, device):
|
|||
f" {mountpoint}")
|
||||
logging.info(" *** TYPE IN THE FULL DISK ENCRYPTION PASSWORD (TWICE!) ***")
|
||||
|
||||
# Avoid cryptsetup warning about missing locking directory
|
||||
pmb.chroot.root(args, ["mkdir", "-p", "/run/cryptsetup"])
|
||||
|
||||
pmb.chroot.root(args, ["cryptsetup", "luksFormat",
|
||||
"-q",
|
||||
"--cipher", args.cipher,
|
||||
|
|
Loading…
Reference in New Issue