|
|
|
@ -22,7 +22,7 @@ init() {
|
|
|
|
|
[[ "$DEV" =~ sd[a-z] ]] && SUF="1-3" && MODE="SATA"
|
|
|
|
|
[[ "$DEV" =~ nvme[0-9]n[0-9] ]] && SUF="p1-3" && MODE="NVME"
|
|
|
|
|
[ -z "$ENC" ] && read -p "Do you want the root partition to be encrypted (y/n)? " ENC
|
|
|
|
|
[ "$ENC" -eq "y" ] && ENC=true || ENC=false
|
|
|
|
|
[ "$ENC" == "y" ] && ENC=true || ENC=false
|
|
|
|
|
|
|
|
|
|
echo "+---------------------+"
|
|
|
|
|
echo "| Archlinux Bootstrap |"
|
|
|
|
@ -32,7 +32,7 @@ init() {
|
|
|
|
|
echo "DEVICEPARTS = $DEV$SUF"
|
|
|
|
|
echo "ENCRYPTION = $ENC"
|
|
|
|
|
read -p "Do you want to continue with these values (y/n)? " cont
|
|
|
|
|
[ ! "$cont" = "y" ] && unset NAME PASSWD DEV && init
|
|
|
|
|
[ ! "$cont" = "y" ] && unset NAME PASSWD DEV ENC && init
|
|
|
|
|
echo "Let's GOOOO"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|