Skip to content

Commit 667224b

Browse files
committed
fix(mkimage): log console boot messages to hvc0
VZ has support for serial console logging but the device is different from Qemu. VZ uses the hypervisor virtual console device instead. This change modifies the bootloader to add hvc0 as a device to log console messages to on boot. Note this has no effect on the tty serial logging. Issue: lima-vm/lima#1659 Signed-off-by: Ryan Currah <[email protected]>
1 parent 7a76cfb commit 667224b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mkimg.lima.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ profile_lima() {
1010
initfs_cmdline="modules=loop,squashfs,sd-mod,usb-storage"
1111
kernel_addons=
1212
kernel_flavors="virt"
13-
kernel_cmdline="console=tty0 console=ttyS0,115200"
13+
kernel_cmdline="console=hvc0 console=tty0 console=ttyS0,115200"
1414
syslinux_serial="0 115200"
1515
apkovl="genapkovl-lima.sh"
1616
apks="$apks openssh-server-pam"

0 commit comments

Comments
 (0)