From fdb40022984e7e4d2d5c80c0e2a02da7d2c7ca16 Mon Sep 17 00:00:00 2001 From: Bart Laarhoven Date: Tue, 6 May 2025 12:50:08 +0200 Subject: [PATCH] util: run cryptsetup with "-d -" instead of "-d /dev/stdin" Make sure that cryptsetup runs with the correct parameters to fix issues in some environments. Signed-off-by: Bart Laarhoven --- internal/util/cryptsetup/cryptsetup.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/util/cryptsetup/cryptsetup.go b/internal/util/cryptsetup/cryptsetup.go index 403dc69db..699a9c336 100644 --- a/internal/util/cryptsetup/cryptsetup.go +++ b/internal/util/cryptsetup/cryptsetup.go @@ -78,7 +78,7 @@ func (l *luksWrapper) Format(devicePath, passphrase string) (string, string, err strconv.Itoa(pkdbfMemoryLimit), devicePath, "-d", - "/dev/stdin") + "-") } // LuksOpen opens LUKS encrypted partition and sets up a mapping. @@ -92,7 +92,7 @@ func (l *luksWrapper) Open(devicePath, mapperFile, passphrase string) (string, s mapperFile, "--disable-keyring", "-d", - "/dev/stdin") + "-") } // LuksResize resizes LUKS encrypted partition.