update scripts. relative directories. boot to ubuntu noble command line.
This commit is contained in:
@@ -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.'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user