diff options
Diffstat (limited to 'stages/first_stage.sh')
-rw-r--r-- | stages/first_stage.sh | 36 |
1 files changed, 36 insertions, 0 deletions
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 <https://www.gnu.org/licenses/>. + + +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 |