From 0a55369548c92db6c5b70348483875e9af7c0f99 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 15 Dec 2019 12:10:11 +0100 Subject: Bugfix for new first_stage.sh. --- stages/first_stage.sh | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'stages') 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'?!" -- cgit v1.2.3-70-g09d2