From 108ed0f28ba02b80c583db8c34bbc1c0787cadf4 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 11 Oct 2020 13:35:44 +0200 Subject: [PATCH] pmbootstrap install: fix cryptsetup warning (MR 1984) Create /run/cryptsetup before running "cryptsetup luksFormat" to fix: WARNING: Locking directory /run/cryptsetup is missing! --- pmb/install/format.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pmb/install/format.py b/pmb/install/format.py index 07661feb..0dedbac1 100644 --- a/pmb/install/format.py +++ b/pmb/install/format.py @@ -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,