Perform partitioning and repo-cloning in common setup

This commit is contained in:
Manuel Thalmann 2024-07-13 10:59:09 +02:00
commit 8715109e6e
2 changed files with 10 additions and 12 deletions
scripts/Common/OS

View file

@ -5,7 +5,13 @@ begin
source "$dir/../Scripts/hooks.fish"
set -l name (getConfig valhalla.setupUser.name)
set -l mountDir (getConfig valhalla.partition.rootDir)
runHook setupOS || true
set -l projectRoot (realpath "$dir/../../..")
set -l projectName (basename "$projectRoot")
set -l PROJECT_CLONE_ROOT "/opt/$(basename "$projectName")"
CONFIG_MODULE=$CONFIG_MODULE bash "$dir/partition.sh"
and source "$dir/../../copy-repo.fish" "$mountDir$PROJECT_CLONE_ROOT"
and runHook setupOS || true
and runHook createUser || \
begin