added functionality to delete existing partitions before reinstall
Some checks failed
Build / build (push) Failing after 4m53s

This commit is contained in:
tumillanino
2025-11-12 15:55:15 +11:00
parent adab84e8ff
commit f05bd8b929
575 changed files with 187 additions and 160911 deletions

View File

@@ -1,39 +0,0 @@
#!/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