From 8fd85934aa6205e8d1b13c8a0d3063826c7b40c0 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 29 Dec 2023 18:02:45 +0100 Subject: [PATCH 1/2] fix: Serial port --- src/power.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/power.sh b/src/power.sh index 37594725..09def3bc 100644 --- a/src/power.sh +++ b/src/power.sh @@ -73,7 +73,7 @@ terminal() { if [ ! -c "$dev" ]; then dev=$(echo 'info chardev' | nc -q 1 -w 1 localhost "$QEMU_PORT" | tr -d '\000') - dev="${dev#*charserial0}" + dev="${dev#*serial0}" dev="${dev#*pty:}" dev="${dev%%$'\n'*}" dev="${dev%%$'\r'*}" From 105e03a8d88801402889e105e7b19856d5137382 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 29 Dec 2023 18:14:43 +0100 Subject: [PATCH 2/2] fix: Serial port --- src/serial.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/serial.sh b/src/serial.sh index 80b392c8..a49277ce 100644 --- a/src/serial.sh +++ b/src/serial.sh @@ -47,9 +47,7 @@ done # Configure serial ports SERIAL_OPTS="\ - -serial none \ - -chardev pty,id=charserial0 \ - -device isa-serial,chardev=charserial0,id=serial0 \ + -serial pty \ -device virtio-serial-pci,id=virtio-serial0,bus=pcie.0,addr=0x3 \ -chardev socket,id=charchannel0,host=127.0.0.1,port=12345,reconnect=10 \ -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=vchannel"