From 2a64f2483771ede6310b18a94e7301618d8dc4f7 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 15 Dec 2019 11:39:20 +0100 Subject: Started change to new stages/util concept. --- stages/first_stage.sh | 36 ++++++++++++++++++++++++++++++++++++ stages/second_stage.sh | 3 +++ 2 files changed, 39 insertions(+) (limited to 'stages') diff --git a/stages/first_stage.sh b/stages/first_stage.sh index 2d19b9a..756c8ff 100644 --- a/stages/first_stage.sh +++ b/stages/first_stage.sh @@ -16,3 +16,39 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . + + +echo "Entering first_stage.sh - OK" + + +mkdir $(dirname "$CONFIG_FILE_PATH") +touch $CONFIG_FILE_PATH +python write_config.py $CONFIG_FILE_PATH +disk=$(python $REPOSITORY_PATH/bin/get_config_string.py $CONFIG_FILE_PATH "disk") +disk_path=/dev/$disk +hostname=$(python $REPOSITORY_PATH/bin/get_config_string.py $CONFIG_FILE_PATH "hostname") +desktop=$(python $REPOSITORY_PATH/bin/get_config_string.py $CONFIG_FILE_PATH "desktop") + + +echo "All data on disk '$disk' will be finally lost!" +echo "Are you SURE that you want to install Arch Linux to '$disk'?!" +echo "Type 'Yes' for installation and 'No' for abort." +read answer +if [ $answer == "Yes" ]; then + echo "" + echo "Starting installation process - OK" + echo "" +else + echo "" + echo "Abort of installation process!" + exit +fi + + +bash check_bootmode.sh + +bash partition_disk.sh $disk_path + +bash create_filesystems.sh $(disk_path)1 $(disk_path)2 + +bash mount_filesystems.sh $(disk_path)2 diff --git a/stages/second_stage.sh b/stages/second_stage.sh index 2d19b9a..5810806 100644 --- a/stages/second_stage.sh +++ b/stages/second_stage.sh @@ -16,3 +16,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . + + +echo "Entering second_stage.sh - OK" -- cgit v1.2.3-70-g09d2