summaryrefslogtreecommitdiff
path: root/stages
diff options
context:
space:
mode:
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