User setup and erlang installation

A bit fiddly, but this lets us run a realistic erlang install script
from userspace, and then re-enter userspace later without wiping the
installation.
This commit is contained in:
Jarvis Carroll
2025-05-23 21:21:16 +10:00
parent 4f6ee7cc88
commit 28de550295
7 changed files with 204 additions and 13 deletions
+3 -1
View File
@@ -18,8 +18,10 @@ cleanup_mount() {
if test -e "$ROOT"
then
cleanup_mount "$ROOT/proc"
cleanup_mount "$ROOT/dev/pts"
cleanup_mount "$ROOT/dev"
cleanup_mount "$ROOT/sys"
cleanup_mount "$ROOT/proc"
echo "Removing $ROOT"
rm -r "$ROOT"
else