quick local shell access from qemu

This commit is contained in:
K. Lange 2018-08-13 13:32:26 +09:00
parent 70e4125032
commit e9853dbd4f
2 changed files with 14 additions and 0 deletions

View File

@ -269,6 +269,13 @@ headless: image.iso
-nographic -no-reboot \ -nographic -no-reboot \
-fw_cfg name=opt/org.toaruos.bootmode,string=headless -fw_cfg name=opt/org.toaruos.bootmode,string=headless
.PHONY: shell
shell: image.iso
@qemu-system-i386 -cdrom $< ${QEMU_ARGS} \
-nographic -no-reboot \
-fw_cfg name=opt/org.toaruos.bootmode,string=headless \
-fw_cfg name=opt/org.toaruos.forceuser,string=local
.PHONY: efi64 .PHONY: efi64
efi64: image.iso efi64: image.iso
qemu-system-x86_64 -cdrom $< ${QEMU_ARGS} \ qemu-system-x86_64 -cdrom $< ${QEMU_ARGS} \

View File

@ -0,0 +1,7 @@
#!/bin/sh
export-cmd QEMU_USER qemu-fwcfg opt/org.toaruos.forceuser
if empty? "$QEMU_USER" then true else /bin/getty -a "$QEMU_USER"
if empty? "$QEMU_USER" then true else reboot