aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xjoes-arch-install-UEFI.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/joes-arch-install-UEFI.sh b/joes-arch-install-UEFI.sh
index b14d8cd..ead5df4 100755
--- a/joes-arch-install-UEFI.sh
+++ b/joes-arch-install-UEFI.sh
@@ -408,7 +408,8 @@ echo -e "${BGREEN}Wiping complete.${END}"
#================================================================#
#--------------------- PARTITIONING DISK ------------------------#
#================================================================#
-fdisk "$drv" << FDISK_INPUT
+if [ $efimode = true ]; then
+ fdisk "$drv" << FDISK_EFI_INPUT
g
n
1
@@ -430,7 +431,12 @@ t
2
19
w
-FDISK_INPUT
+FDISK_EFI_INPUT
+else
+ fdisk "$drv" << FDISK_BIOS_INPUT
+
+FDISK_BIOS_INPUT
+fi
mkswap "$drv""2" > /dev/null
mkfs.fat -F32 "$drv""1" > /dev/null
mkfs.ext4 "$drv""3" > /dev/null