quick local shell access from qemu
This commit is contained in:
parent
70e4125032
commit
e9853dbd4f
7
Makefile
7
Makefile
@ -269,6 +269,13 @@ headless: image.iso
|
||||
-nographic -no-reboot \
|
||||
-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
|
||||
efi64: image.iso
|
||||
qemu-system-x86_64 -cdrom $< ${QEMU_ARGS} \
|
||||
|
7
base/etc/startup.d/98_qemu_login.sh
Executable file
7
base/etc/startup.d/98_qemu_login.sh
Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user