summaryrefslogtreecommitdiff
path: root/stages/first_stage.sh
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-03-21 14:40:01 +0100
committerxengineering <mail2xengineering@protonmail.com>2020-03-21 14:40:01 +0100
commit988c86ddc26b329263f3afd3ae844063c234777c (patch)
tree96848f1e786cd5fe603ee63a90753b7828ecb88e /stages/first_stage.sh
parentf9aea0323111aec7d8b1e828b003bd6210534f43 (diff)
downloadarchinstall-988c86ddc26b329263f3afd3ae844063c234777c.tar
archinstall-988c86ddc26b329263f3afd3ae844063c234777c.tar.zst
archinstall-988c86ddc26b329263f3afd3ae844063c234777c.zip
Remove Input Checks
Diffstat (limited to 'stages/first_stage.sh')
-rw-r--r--stages/first_stage.sh31
1 files changed, 11 insertions, 20 deletions
diff --git a/stages/first_stage.sh b/stages/first_stage.sh
index 1581fce..b7a45b1 100644
--- a/stages/first_stage.sh
+++ b/stages/first_stage.sh
@@ -30,6 +30,7 @@ print_ok "Entering first_stage.sh"
# check bootmode
+print_ok "Checking bootmode ..."
if [ -d "/sys/firmware/efi/efivars" ]; then
export boot_mode="uefi"
print_ok "Booted with UEFI"
@@ -67,7 +68,6 @@ n
p
w
EOF
- print_ok "Partitioned disk for UEFI/GPT"
elif [ "$boot_mode" == "bios" ]; then
print_ok "Partitioning for BIOS mode ..."
@@ -88,13 +88,11 @@ p
p
w
EOF
- print_ok "Partitioned disk for BIOS/MBR"
-else
- print_failed "Unknown boot_mode"
- exit 1
fi
+print_ok "Partitioning done"
+
# format and mount partitions
@@ -102,7 +100,7 @@ if [ "$luks_encryption" == "no" ];then
if [ "$boot_mode" == "bios" ];then
- print_ok "Formatting for no disk encryption and bios/mbr"
+ print_ok "Formatting for no disk encryption and bios/mbr ..."
# root partition
mkfs.ext4 ${path_to_disk}2
@@ -117,7 +115,7 @@ if [ "$luks_encryption" == "no" ];then
elif [ "$boot_mode" == "uefi" ];then
- print_ok "Formatting for no disk encryption and uefi/gpt"
+ print_ok "Formatting for no disk encryption and uefi/gpt ..."
# root partition
mkfs.ext4 ${path_to_disk}3
@@ -136,37 +134,30 @@ if [ "$luks_encryption" == "no" ];then
mkdir /mnt/mnt
mount ${path_to_disk}1 /mnt/mnt
- else
- print_failed "Unknown boot_mode"
- exit 1
fi
elif [ "$luks_encryption" == "yes" ];then
if [ "$boot_mode" == "bios" ];then
- print_ok "Formatting for disk encryption and bios/mbr"
+ print_ok "Formatting for disk encryption and bios/mbr ..."
- print_failed "Sorry, encryption is not ready to use ..."
+ print_failed "Sorry, encryption is not ready to use"
exit 1 ###
elif [ "$boot_mode" == "uefi" ];then
- print_ok "Formatting for disk encryption and uefi/gpt"
+ print_ok "Formatting for disk encryption and uefi/gpt ..."
- print_failed "Sorry, encryption is not ready to use ..."
+ print_failed "Sorry, encryption is not ready to use"
exit 1 ###
- else
- print_failed "Unknown boot_mode"
- exit 1
fi
-else
- print_failed "luks_encryption not 'yes' or 'no'"
- exit 1
fi
+print_ok "Formatting done"
+
# install packages with pacstrap