fix: variable names

master
phga 3 years ago
parent 9985ff9c15
commit f03ae6e0f2
Signed by: phga
GPG Key ID: 5249548AA705F019

@ -12,6 +12,7 @@ do case $opt in
done done
init() { init() {
sleep 1
echo "" echo ""
echo "+---------------------------+" echo "+---------------------------+"
echo "| Just Some Short Questions |" echo "| Just Some Short Questions |"
@ -93,18 +94,18 @@ EOF
[ $MODE == "NVME" ] && suffix="p" || suffix="" [ $MODE == "NVME" ] && suffix="p" || suffix=""
if [ "$ENC" == true ]; then if [ "$ENC" == true ]; then
mkfs.fat -I -F 32 -n P_EFI "/dev/$DEV$suffix1" # -I bc of virtual mappings echo "MAKING CHANGES ON /dev/${DEV}${suffix}1-3"
crypt_create_fs "/dev/$DEV$suffix3" mkfs.fat -I -F 32 -n P_EFI "/dev/${DEV}${suffix}1" # -I bc of virtual mappings
mkfs.ext2 -L cryptswap "/dev/$DEV$suffixp2" 1M # Otherwise label will be lost after reboot crypt_create_fs "/dev/${DEV}${suffix}3"
mkfs.ext2 -L cryptswap "/dev/${DEV}${suffix}2" 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 echo "MAKING CHANGES ON /dev/${DEV}${suffix}1-3"
mkfs.ext4 -L P_ROOT "/dev/$DEV$suffix3" mkfs.fat -F 32 -n P_EFI "/dev/${DEV}${suffix}1" # -I bc of virtual mappings
mkswap -L P_SWAP "/dev/$DEV$suffix2" mkfs.ext4 -L P_ROOT "/dev/${DEV}${suffix}3"
mkswap -L P_SWAP "/dev/${DEV}${suffix}2"
fi fi
ROOT_UUID=$(blkid | grep -Po '/dev/'"${DEV}${suffix}"'3.* UUID="\K[0-9a-f-]+')
ROOT_UUID=$(blkid | grep -Po '/dev/'"$DEV$suffix"'3.* UUID="\K[0-9a-f-]+')
SWAP_UUID=$(blkid | grep -Po '/dev/'"$DEV$suffix"'2.* UUID="\K[0-9a-f-]+')
if [ "$ENC" == true ]; then if [ "$ENC" == true ]; then
mount /dev/mapper/root /mnt mount /dev/mapper/root /mnt

Loading…
Cancel
Save