mirror of https://github.com/ventoy/Ventoy.git
Solved passphrase error
Solved 'Illegal option' error when passphrase starts with hyphen
This commit is contained in:
parent
39703cabb7
commit
890ffa7f24
|
@ -108,8 +108,8 @@ freeloop=$(losetup -f)
|
|||
losetup $freeloop "$outputfile"
|
||||
|
||||
if [ ! -z "$passphrase" ]; then
|
||||
printf "$passphrase" | cryptsetup -q --verbose luksFormat $freeloop -
|
||||
printf "$passphrase" | cryptsetup -q --verbose luksOpen $freeloop persist_decrypted -
|
||||
printf -- "$passphrase" | cryptsetup -q --verbose luksFormat $freeloop -
|
||||
printf -- "$passphrase" | cryptsetup -q --verbose luksOpen $freeloop persist_decrypted -
|
||||
_freeloop=$freeloop
|
||||
freeloop="/dev/mapper/persist_decrypted"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue