[Libguestfs] [PATCH 4/5] init: Add comment that we should consider using /proc/consoles.

Richard W.M. Jones rjones at redhat.com
Wed May 17 11:09:04 UTC 2017


Although we can't use it at the moment because it is incorrect
on at least s390x (RHBZ#1351968).
---
 appliance/init | 1 +
 1 file changed, 1 insertion(+)

diff --git a/appliance/init b/appliance/init
index 2df5f92ce..50a1dc3bd 100755
--- a/appliance/init
+++ b/appliance/init
@@ -185,6 +185,7 @@ else
     sleep 2
 
     # Get name of the serial port, from console= passed by libguestfs.
+    # XXX Consider using /proc/consoles
     guestfs_serial=$(grep -Eo 'console=[^[:space:]]+' /proc/cmdline |
                      sed s/console=//)
 
-- 
2.13.0




More information about the Libguestfs mailing list