Add scripts for Void scripts

This commit is contained in:
Jarvis Carroll
2025-06-02 23:36:08 +10:00
parent b344241b33
commit c200c89b75
7 changed files with 190 additions and 25 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
if test `id -u` -ne 0
then
echo "$0 must be run as root."
return
fi
ROOT=test_environment
if test -e "$ROOT"
then
echo "Using existing environment in $ROOT."
else
./create_environment
fi
./cleanup add_mounts
chroot "$ROOT" sudo -iu user "$@"
./cleanup mounts