Skip to content

Commit

Permalink
virtme: pass "debug" to the boot options when running in verbose mode
Browse files Browse the repository at this point in the history
Some distro / kernels require the "debug" boot option to properly show
the kernel messages to the console.

Add this parameter to correctly show the kernel log when "-v" is used.

This allows to properly show the kernel log in Arch Linux, CachyOS (and
probably most of the Arch-derivative distro).

Signed-off-by: Andrea Righi <[email protected]>
  • Loading branch information
arighi committed Jul 28, 2024
1 parent 599d8ba commit 4bf382a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtme/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ def do_it() -> int:
qemuargs.extend(["-chardev", "file,path=/proc/self/fd/2,id=dmesg"])
qemuargs.extend(["-device", arch.virtio_dev_type("serial")])
qemuargs.extend(["-device", "virtconsole,chardev=dmesg"])
kernelargs.extend(["console=hvc0"])
kernelargs.extend(["console=ttyS0", "debug"])

# Unfortunately we can't use hvc0 to redirect early console
# messages to stderr, so just send them to the main console, in
Expand Down

0 comments on commit 4bf382a

Please sign in to comment.