archlinux-s390x/scripts/run-qemu-initramfs-only.sh

25 lines
715 B
Bash
Raw Normal View History

2025-05-31 14:57:37 -04:00
#!/bin/bash
# Complete s390x Arch Linux system running from initramfs only
# Get script directory and project root
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
echo "🚀 Starting Arch Linux s390x - Initramfs Only System"
echo "This will boot entirely from the initramfs (no separate root filesystem)"
echo "Press Ctrl-A X to exit"
echo ""
cd "$PROJECT_ROOT"
qemu-system-s390x \
-machine s390-ccw-virtio \
-cpu max \
-m 2G \
-kernel "output/vmlinuz-6.6.10-s390x" \
-initrd "output/initramfs-6.6.10-s390x.img" \
-append "console=ttyS0 rdinit=/init" \
-nographic \
-device virtio-net-ccw,netdev=net0 \
-netdev user,id=net0