#!/bin/bash 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 # 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" rscr mult "Performing post-install" post-install write_completed_stage display_stage_build_stats exit 0