format label

This commit is contained in:
Bob Mottram 2015-12-14 09:35:23 +00:00
parent bfa562396d
commit b62f69cc2f
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ if [ ! $1 ]; then
fi
USB_DRIVE=/dev/${1}1
LABEL='Freedombone'
LABEL="${PROJECT_NAME}"
echo $'Partitioning drive'
echo "o
@ -68,7 +68,7 @@ if [ ! "$?" = "0" ]; then
echo $"Failed to open LUKS formatted drive $USB_DRIVE"
exit 37232
fi
mkfs.ext4 /dev/mapper/encrypted_usb -L Freedombone
mkfs.ext4 /dev/mapper/encrypted_usb -L "$LABEL"
if [ ! "$?" = "0" ]; then
cryptsetup luksClose encrypted_usb
echo $'Format of drive $USB_DRIVE failed'