summaryrefslogtreecommitdiff
path: root/stages
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-12-15 12:10:11 +0100
committerxengineering <mail2xengineering@protonmail.com>2019-12-15 12:10:11 +0100
commit0a55369548c92db6c5b70348483875e9af7c0f99 (patch)
tree89f96e31623f52657bdec0e1b468ae8625954ca8 /stages
parent0887eef1b26803ecb145e05e7a192d5089280ee4 (diff)
downloadarchinstall-0a55369548c92db6c5b70348483875e9af7c0f99.tar
archinstall-0a55369548c92db6c5b70348483875e9af7c0f99.tar.zst
archinstall-0a55369548c92db6c5b70348483875e9af7c0f99.zip
Bugfix for new first_stage.sh.
Diffstat (limited to 'stages')
-rw-r--r--stages/first_stage.sh23
1 files changed, 10 insertions, 13 deletions
diff --git a/stages/first_stage.sh b/stages/first_stage.sh
index 977bff5..0d7b9f0 100644
--- a/stages/first_stage.sh
+++ b/stages/first_stage.sh
@@ -21,27 +21,24 @@
echo "Entering first_stage.sh - OK"
+# Write config
+
mkdir $(dirname "$CONFIG_FILE_PATH")
touch $CONFIG_FILE_PATH
-python write_config.py $CONFIG_FILE_PATH
+python $REPOSITORY_PATH/util/write_config.py $CONFIG_FILE_PATH
+
+
+# Reading config values to bash
+
export disk=$(python $REPOSITORY_PATH/bin/get_config_string.py $CONFIG_FILE_PATH "disk")
export disk_path=/dev/$disk
-export boot_partition_path=$disk_path1
-export root_partition_path=$disk_path2
+export boot_partition_path="${disk_path}1"
+export root_partition_path="${disk_path}2"
export hostname=$(python $REPOSITORY_PATH/bin/get_config_string.py $CONFIG_FILE_PATH "hostname")
export desktop=$(python $REPOSITORY_PATH/bin/get_config_string.py $CONFIG_FILE_PATH "desktop")
-# DEBUGGING:
-echo "Printing variables:"
-echo $PATH
-echo $disk
-echo $disk_path
-echo $boot_partition_path
-echo $root_partition_path
-echo $hostname
-echo $desktop
-
+# Confirmation
echo "All data on disk '$disk' will be finally lost!"
echo "Are you SURE that you want to install Arch Linux to '$disk'?!"