mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-05-21 23:06:42 +00:00
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 <bartlaarhoven@users.noreply.github.com>
This commit is contained in:
parent
af12c6bf1b
commit
fdb4002298
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user