Skip to content
Snippets Groups Projects
Commit 9582681b authored by Bob Mottram's avatar Bob Mottram
Browse files

cryptsetup syntax

parent 550cb018
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ if ! cryptsetup -y -v luksFormat "${USB_DRIVE}"; then
echo $"Failed to format $USB_DRIVE as LUKS"
exit 36823
fi
if ! cryptsetup luksOpen "${USB_DRIVE}" encrypted_usb; then
if ! cryptsetup open --type luks "${USB_DRIVE}" encrypted_usb; then
echo $"Failed to open LUKS formatted drive $USB_DRIVE"
exit 37232
fi
......
......@@ -116,7 +116,7 @@ if [[ $FORMAT == "yes" ]]; then
fi
fi
if cryptsetup luksOpen "$USB_DRIVE" encrypted_usb; then
if cryptsetup open --type luks "$USB_DRIVE" encrypted_usb; then
USB_DRIVE=/dev/mapper/encrypted_usb
fi
if ! mount $USB_DRIVE $USB_MOUNT; then
......
......@@ -181,7 +181,7 @@ function backup_mount_drive {
cryptsetup luksClose encrypted_usb
# mount the encrypted backup drive
if cryptsetup luksOpen "$USB_DRIVE" encrypted_usb; then
if cryptsetup open --type luks "$USB_DRIVE" encrypted_usb; then
USB_DRIVE=/dev/mapper/encrypted_usb
fi
if ! mount "$USB_DRIVE" "$USB_MOUNT"; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment