add pkg
This commit is contained in:
30
old/cfg/install.sh
Normal file
30
old/cfg/install.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
# aios installation script
|
||||
|
||||
NAME="aios"
|
||||
TARBALL="aios-bootstrap.tar.gz"
|
||||
|
||||
echo "=== aios installation ==="
|
||||
|
||||
# Extract and install
|
||||
tar xf "$TARBALL"
|
||||
mkdir -p /var/lib/machines
|
||||
mv root.x86_64 /var/lib/machines/$NAME
|
||||
|
||||
# Create aios.nspawn for network access
|
||||
echo "Creating network configuration..."
|
||||
mkdir -p /etc/systemd/nspawn
|
||||
cat > /etc/systemd/nspawn/$NAME.nspawn <<'EOF'
|
||||
[Exec]
|
||||
Boot=yes
|
||||
|
||||
[Network]
|
||||
Private=no
|
||||
EOF
|
||||
|
||||
echo "=== Installation complete ==="
|
||||
echo ""
|
||||
echo "Usage:"
|
||||
echo " sudo machinectl start $NAME"
|
||||
echo " sudo machinectl shell $NAME /bin/su - ai"
|
||||
echo ""
|
||||
Reference in New Issue
Block a user