scripts icon indicating copy to clipboard operation
scripts copied to clipboard

add -nographic flag for x86_64 arch

Open thebigbone opened this issue 9 months ago • 4 comments

Add -nographic in build_library/qemu_template.sh

Refer https://github.com/flatcar/Flatcar/issues/1687

Testing done

  • Use the flag to boot up flatcar linux image on a headless x86_64 system and it works fine.

  • [ ] Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)

  • [x] Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

thebigbone avatar Mar 17 '25 13:03 thebigbone

I was actually looking to go the other way and remove -nographic from all cases, as having the display can help diagnose some early boot issues. There were some driver-related issues with arm64 though, so I didn't push it yet. You can always add -- -nographic yourself if that's what you want.

chewi avatar Mar 19 '25 09:03 chewi

Maybe we could make this automatic by checking the DISPLAY and WAYLAND_DISPLAY variables.

chewi avatar Mar 19 '25 09:03 chewi

I manually provide either -nographic or -display curses on the flatcar_production_qemu.sh command line. One reason for the arm64/amd64 difference in -nographic: on arm64 the default console is the serial console, and on amd64 the default is tty0/tty1. So to get early kernel/initrd console output in -nographic mode on amd64 requires breaking in grub and appending console=ttyS0 to the kernel command line.

jepio avatar Mar 19 '25 13:03 jepio