Files
tumillanino 6fd2f42ec2
Some checks failed
Build / build (push) Failing after 4m53s
added required partitioning package installations
2025-11-12 16:01:17 +11:00

40 lines
680 B
Bash
Executable File

#!/usr/bin/env bash
set -o pipefail
## Set common variables
#
# Commonly used variables
declare -r workdir='/mnt'
declare -r osidir='/etc/os-installer'
declare -r scriptsdir="$osidir/scripts/install.sh.d"
declare -r rootlabel='arkane_root'
declare -r bootlabel='arkane_boot'
## Set common functions
#
# Quit script with error if called
quit_on_err () {
if [[ -n $1 ]]; then
printf "$1\n"
fi
# Ensure console prints error
sleep 2
exit 1
}
## Execute scripts
#
# Get list of all child scripts
declare -r scripts=($(ls $scriptsdir))
# Loop and run install scripts
for script in ${scripts[@]}; do
printf "Now running $script\n"
source $scriptsdir/$script
done
exit 0