forked from BodgeMaster/void-usb
install stage 1: forgot formatting LUKS container
parent
4b2749b2a5
commit
86a7cc1d60
|
|
@ -186,7 +186,7 @@ if yesno; then
|
|||
|
||||
echo -n "Formatting partitions... "
|
||||
mkfs.vfat -F32 -n "EFIBOOT" "$TARGET_PART_EFI" >> $LOGFILE 2>&1
|
||||
mkfs.f2fs -f -l "container" "$TARGET_PART_BOOT" >> $LOGFILE 2>&1
|
||||
mkfs.f2fs -f -l "boot" "$TARGET_PART_BOOT" >> $LOGFILE 2>&1
|
||||
echo "Setting up encryption. You will be asked for the same password twice."
|
||||
cryptsetup luksFormat --batch-mode --type luks2 --force-password "$TARGET_PART_BIG"
|
||||
DEV_MAPPER_NAME="luks-$(blkid --output value --match-tag UUID "$TARGET_PART_BIG")"
|
||||
|
|
@ -195,6 +195,7 @@ if yesno; then
|
|||
echo "Failed to open encrypted container. The entered passwords probably didn't match."
|
||||
exit 1
|
||||
fi
|
||||
mkfs.f2fs -f -l "container" /dev/mapper/"$DEV_MAPPER_NAME" >> $LOGFILE 2>&1
|
||||
echo "done"
|
||||
|
||||
echo -n "Mounting partitions and virtual file systems... "
|
||||
|
|
|
|||
Loading…
Reference in New Issue