summaryrefslogtreecommitdiff
path: root/stages
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-03-17 18:18:34 +0100
committerxengineering <mail2xengineering@protonmail.com>2020-03-17 18:18:34 +0100
commit33e55cffe600919b295f7a4fb0c621ba3b5db04e (patch)
tree3a7afeb3375163ff5270ffbf5ed88e2db9d9aa06 /stages
parent85efdc6c00d89cd42f2c91331c2df299e6c4e872 (diff)
downloadarchinstall-33e55cffe600919b295f7a4fb0c621ba3b5db04e.tar
archinstall-33e55cffe600919b295f7a4fb0c621ba3b5db04e.tar.zst
archinstall-33e55cffe600919b295f7a4fb0c621ba3b5db04e.zip
Implement if/elif Blocks for Partition Formatting
Diffstat (limited to 'stages')
-rw-r--r--stages/first_stage.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/stages/first_stage.sh b/stages/first_stage.sh
index b8f31dd..dcd2cbd 100644
--- a/stages/first_stage.sh
+++ b/stages/first_stage.sh
@@ -51,6 +51,8 @@ fi
if [ "$boot_mode" == "uefi" ]; then
echo "Partitioning for UEFI mode."
+ echo "Sorry, this is still untested and you should not try it ..."
+ exit 1
wipefs -a $path_to_disk # make sure that fdisk does not ask for removing
# signatures which breaks the script
fdisk $path_to_disk << EOF
@@ -89,3 +91,24 @@ EOF
echo "Partitioned disk for BIOS/MBR - OK"
fi
+
+
+# Format partitions
+
+if [ "$luks_encryption" == "no" ];then
+ if [ "$boot_mode" == "bios" ];then
+ echo "no/bios"
+ elif [ "$boot_mode" == "uefi" ];then
+ echo "no/uefi"
+ else
+ echo "oh no"
+ fi
+elif [ "$luks_encryption" == "yes" ];then
+ if [ "$boot_mode" == "bios" ];then
+ echo "yes/bios"
+ elif [ "$boot_mode" == "uefi" ];then
+ echo "yes/uefi"
+ else
+ echo "oh no"
+ fi
+fi