update scripts. relative directories. boot to ubuntu noble command line.

This commit is contained in:
2025-12-06 23:24:59 -08:00
parent 191a3c9568
commit 221c49ccbb
6 changed files with 57 additions and 46 deletions

View File

@@ -1,11 +1,15 @@
#!/bin/bash
if [ "$(id -u)" -ne 0 ]; then
echo "switching from $(id -un) to root"
exec sudo "$0" "$@"
fi
set -e
cd "$(dirname "$0")"
cd ..
echo $PWD
mkdir -p outputs/root
cat ./config/filesystem_containerfile | /usr/bin/podman build -f - -t patronagefs:latest .
podman run --rm -it --volume ./outputs/root:/tmp/rootfs/:exec --name patronagefs patronagefs:latest
echo 'exported.'
rm -rf ./outputs/root/
mkdir -p ./outputs/root/
debootstrap noble ./outputs/root http://archive.ubuntu.com/ubuntu
echo 'root filesystem created.'