diff --git a/Makefile b/Makefile index 1113787b..a6f06d6f 100644 --- a/Makefile +++ b/Makefile @@ -329,10 +329,11 @@ fast: image.iso .PHONY: headless headless: image.iso - @qemu-system-i386 -cdrom $< ${QEMU_ARGS} \ + @qemu-system-i386 -cdrom $< -m 1G ${KVM} -rtc base=localtime ${QEMU_EXTRA} \ + -serial null -serial mon:stdio \ -nographic -no-reboot -audiodev none,id=id \ -fw_cfg name=opt/org.toaruos.bootmode,string=headless \ - -fw_cfg name=etc/sercon-port,string=0 + -fw_cfg name=opt/org.toaruos.gettyargs,string="-a local /dev/ttyS1" .PHONY: shell shell: image.iso diff --git a/base/etc/startup.d/99_runstart.sh b/base/etc/startup.d/99_runstart.sh index c15f4851..8a551f4e 100755 --- a/base/etc/startup.d/99_runstart.sh +++ b/base/etc/startup.d/99_runstart.sh @@ -6,10 +6,12 @@ export-cmd START kcmdline -g start export USER=root export HOME=/home/root +export-cmd GETTY_ARGS qemu-fwcfg opt/org.toaruos.gettyargs + echo -n "Launching startup application..." > /dev/pex/splash echo -n "!quit" > /dev/pex/splash if equals? "$START" "--vga" then exec /bin/terminal-vga -l -if equals? "$START" "--headless" then exec /bin/getty +if equals? "$START" "--headless" then exec /bin/getty ${GETTY_ARGS} if empty? "$START" then exec /bin/compositor else exec /bin/compositor $START