mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-12-24 06:05:58 -05:00
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
Block a user