Partition drives after action setup
This commit is contained in:
parent
f74e1d681c
commit
bc7ef1e4af
1 changed files with 9 additions and 9 deletions
|
@ -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..."
|
||||||
|
|
Loading…
Reference in a new issue