Partition drives after action setup

This commit is contained in:
Manuel Thalmann 2024-12-05 09:45:08 +01:00
parent f74e1d681c
commit bc7ef1e4af

View file

@ -39,6 +39,15 @@ function runSetup
end end
initBackupConfig --action restore initBackupConfig --action restore
echo "Partitioning drives..."
begin
set -l script (mktemp)
chmod +x "$script"
and getOSConfig partition.script >"$script"
and "$script"
and rm "$script"
end
if [ -n "$VALHALLA_BACKUP_SERVER_KEY" ] if [ -n "$VALHALLA_BACKUP_SERVER_KEY" ]
set -l knownHosts /root/.ssh/known_hosts set -l knownHosts /root/.ssh/known_hosts
@ -77,15 +86,6 @@ function runSetup
end | runChroot "$mountDir" tee /root/.bash_profile >/dev/null end | runChroot "$mountDir" tee /root/.bash_profile >/dev/null
end end
function actionPreRun
set -l script (mktemp)
echo "Partitioning drives..."
chmod +x "$script"
and getOSConfig partition.script >"$script"
and "$script"
and rm "$script"
end
function actionPostRun function actionPostRun
echo "Setup finished!" echo "Setup finished!"
and echo "This machine will reboot in 5 seconds..." and echo "This machine will reboot in 5 seconds..."