Files
patronageos/scripts/bootstrap_filesystem.sh
Matt Knoop d26067b2fa additional bash programming to support a json configuration file.
still working on kernel options for proper networking.
2026-01-05 15:05:11 -07:00

20 lines
374 B
Bash
Executable File

#!/bin/bash
if [ "$(id -u)" -ne 0 ]; then
echo "switching from $(id -un) to root"
exec sudo "$0" "$@"
fi
set -e
cd "$(dirname "$0")"
DIR="$(dirname "$0")"
cd ..
echo $PWD
rm -rf './outputs/root'
if [ ! -d ./outputs/root/bin ]; then
rm -rf './outputs/root'
mkdir -p ./outputs/root/
debootstrap questing ./outputs/root https://us.archive.ubuntu.com/ubuntu
fi