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

format label

parent bfa56239
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
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