fix: enable job control for shell with --kernel
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user