format label
This commit is contained in:
parent
bfa562396d
commit
b62f69cc2f
|
@ -39,7 +39,7 @@ if [ ! $1 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
USB_DRIVE=/dev/${1}1
|
USB_DRIVE=/dev/${1}1
|
||||||
LABEL='Freedombone'
|
LABEL="${PROJECT_NAME}"
|
||||||
|
|
||||||
echo $'Partitioning drive'
|
echo $'Partitioning drive'
|
||||||
echo "o
|
echo "o
|
||||||
|
@ -68,7 +68,7 @@ if [ ! "$?" = "0" ]; then
|
||||||
echo $"Failed to open LUKS formatted drive $USB_DRIVE"
|
echo $"Failed to open LUKS formatted drive $USB_DRIVE"
|
||||||
exit 37232
|
exit 37232
|
||||||
fi
|
fi
|
||||||
mkfs.ext4 /dev/mapper/encrypted_usb -L Freedombone
|
mkfs.ext4 /dev/mapper/encrypted_usb -L "$LABEL"
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
cryptsetup luksClose encrypted_usb
|
cryptsetup luksClose encrypted_usb
|
||||||
echo $'Format of drive $USB_DRIVE failed'
|
echo $'Format of drive $USB_DRIVE failed'
|
||||||
|
|
Loading…
Reference in New Issue