|
|
@ -84,11 +84,12 @@ EOF
|
|
|
|
|
|
|
|
|
|
|
|
[ $MODE == "NVME" ] && suffix="p" || suffix=""
|
|
|
|
[ $MODE == "NVME" ] && suffix="p" || suffix=""
|
|
|
|
|
|
|
|
|
|
|
|
mkfs.fat -F 32 -n P_EFI "/dev/$DEV$suffix1"
|
|
|
|
|
|
|
|
if [ "$ENC" == true ]; then
|
|
|
|
if [ "$ENC" == true ]; then
|
|
|
|
|
|
|
|
mkfs.fat -I -F 32 -n P_EFI "/dev/$DEV$suffix1" # -I bc of virtual mappings
|
|
|
|
crypt_create_fs "/dev/$DEV$suffix3"
|
|
|
|
crypt_create_fs "/dev/$DEV$suffix3"
|
|
|
|
mkfs.ext2 -L cryptswap "/dev/$DEV$suffixp2" 1M # Otherwise label will be lost after reboot
|
|
|
|
mkfs.ext2 -L cryptswap "/dev/$DEV$suffixp2" 1M # Otherwise label will be lost after reboot
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
mkfs.fat -F 32 -n P_EFI "/dev/$DEV$suffix1" # -I bc of virtual mappings
|
|
|
|
mkfs.ext4 -L P_ROOT "/dev/$DEV$suffix3"
|
|
|
|
mkfs.ext4 -L P_ROOT "/dev/$DEV$suffix3"
|
|
|
|
mkswap -L P_SWAP "/dev/$DEV$suffix2"
|
|
|
|
mkswap -L P_SWAP "/dev/$DEV$suffix2"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|