diff options
author | xengineering <mail2xengineering@protonmail.com> | 2019-11-25 12:56:06 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2019-11-25 12:56:06 +0100 |
commit | dccbca60ec1bcf9cb6bbd85f50eb16853eb35028 (patch) | |
tree | e1bbffad45ba7ed3620ad2b8591de0f3d8d7174a /bin/first_stage.sh | |
parent | e834e1f3bf442d6baaa8c8f71719b19c6888db5d (diff) | |
download | archinstall-dccbca60ec1bcf9cb6bbd85f50eb16853eb35028.tar archinstall-dccbca60ec1bcf9cb6bbd85f50eb16853eb35028.tar.zst archinstall-dccbca60ec1bcf9cb6bbd85f50eb16853eb35028.zip |
First version with json config file.
Diffstat (limited to 'bin/first_stage.sh')
-rw-r--r-- | bin/first_stage.sh | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/bin/first_stage.sh b/bin/first_stage.sh index 6195d0f..1924434 100644 --- a/bin/first_stage.sh +++ b/bin/first_stage.sh @@ -28,37 +28,14 @@ DELAY=$1 REPOSITORY_PATH=$2 LOG_FILE_PATH=$3 +CONFIG_FILE_PATH=$4 -# Interview +python $2/bin/write_config.py $CONFIG_FILE_PATH +disk=$(python $2/bin/get_config_string.py $CONFIG_FILE_PATH "disk") +disk_path=/dev/$disk +hostname=$(python $2/bin/get_config_string.py $CONFIG_FILE_PATH "hostname") -echo "Here is a list of available hard disks on your computer:" -echo "" -lsblk -o NAME,SIZE,TYPE | grep -v part -echo "" -echo "Please type in the 'NAME' of the hard disk on which you want to" -echo "install Arch Linux:" -read disk -disk_path="/dev/$disk" -echo "" - - -echo "Please type in the hostname of your new machine:" -read hostname -echo "" - - -cat << EOF -################################################################# - - Summary - - Hard disk: - $disk - Hostname: - $hostname - -################################################################# - -EOF echo "All data on disk '$disk' will be finally lost!" echo "Are you SURE that you want to install Arch Linux to '$disk'?!" |