This commit is contained in:
2026-02-27 13:46:31 +09:00
parent c31240ec37
commit 71c4f2513b
8 changed files with 159 additions and 13 deletions

25
install.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
set -e
NAME="aios"
TARBALL="aios.tar.gz"
DEST="/var/lib/machines/$NAME"
if [[ ! -f "$TARBALL" ]]; then
echo "error: $TARBALL not found"
exit 1
fi
echo "=== aios install ==="
mkdir -p "$DEST"
tar xzf "$TARBALL" -C "$DEST"
mkdir -p /etc/systemd/nspawn
cp cfg/aios.nspawn /etc/systemd/nspawn/$NAME.nspawn
echo "=== install complete ==="
echo ""
echo " sudo machinectl start $NAME"
echo " sudo machinectl shell $NAME /bin/su - ai"