fix: enable job control for shell with --kernel

This commit is contained in:
2026-06-16 23:38:09 +02:00
parent 8875bcc92a
commit a81e699619
2 changed files with 48 additions and 10 deletions
+2 -1
View File
@@ -205,7 +205,8 @@ ecr --kernel /boot/vmlinuz debian -- /bin/sh -c "echo hello"
4. Launch QEMU with:
- `-kernel <path>` - provided kernel
- `-initrd initramfs.cpio.gz` - rootfs as initramfs
- `-append "console=ttyS0 quiet rdinit=/bin/sh"` - kernel command line
- `-append "console=ttyS0 quiet rdinit=/bin/sh -- -c \"setsid sh -c 'exec sh </dev/ttyS0 >/dev/ttyS0 2>&1'\""` - kernel command line
7. Essential device nodes (/dev/ttyS0, /dev/null, /dev/tty) are added to initramfs for proper console support
- `-m <memory>` - memory size (default 2G)
- `-display none -serial mon:stdio` - console on stdio
- `-netdev user,id=net0 -device virtio-net-pci,netdev=net0` - network