forked from Mirror/pmbootstrap
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
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ def format_luks_root(args, device):
|
||||||
f" {mountpoint}")
|
f" {mountpoint}")
|
||||||
logging.info(" *** TYPE IN THE FULL DISK ENCRYPTION PASSWORD (TWICE!) ***")
|
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",
|
pmb.chroot.root(args, ["cryptsetup", "luksFormat",
|
||||||
"-q",
|
"-q",
|
||||||
"--cipher", args.cipher,
|
"--cipher", args.cipher,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue