X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage0%2Fhv-install-1;h=5adcb13fd58f9f953af8c091a3cfe01a1e23d71c;hb=6ef29aea0134cb6e7e3f34233495b4d68818668f;hp=260e3c465e8b00c05ddf7f26e69a5f3dafd1b4e3;hpb=b7d1d99f41dcf50a8635f608679947f4455a0c7c;p=hvlinux.git diff --git a/stage0/hv-install-1 b/stage0/hv-install-1 index 260e3c4..5adcb13 100755 --- a/stage0/hv-install-1 +++ b/stage0/hv-install-1 @@ -1,20 +1,22 @@ #!/bin/bash -# Reading system configuration informations, functions and package versions. -source ../sysinfos -source ../functions -hvtrap_setup -source ../packages-list +source ../functions/main +check_for_root_user init_log_file +# This function will exit if the stage is already completed +check_completed_stage + rscr mult "Performing pre-install" pre-install +rscr mult "Creating HVLinux version file" create-version # Logging-in as 'lfs' user, and executing the hv-install-2 script. The # 'su -' command starts with a clean environment and enters the home # directory of the user. su - lfs -c "cd ${PWD}; ./hv-install-2" -echo "Total build time: $(get_total_build_time ${LFS_LOG_FILE})h" +write_completed_stage +display_stage_build_stats exit 0