format label
This commit is contained in:
parent
bfa562396d
commit
b62f69cc2f
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue