Add optional 'make boot SERIAL=yes' to test the serial console.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 9 Sep 2008 11:49:36 +0000 (12:49 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 9 Sep 2008 11:49:36 +0000 (12:49 +0100)
Makefile.in
README

index e0baf03..89e6474 100644 (file)
@@ -42,7 +42,7 @@ VIRTP2V_RPM     := $(PACKAGE)-$(VERSION)-1.noarch.rpm
 all:
        @echo "make rpm       Build the virt-p2v RPM"
        @echo "make build     Build the live CD ISO"
-       @echo "make boot [HDA=hda.img] [HDB=hdb.img] [ISO=livecd.iso]"
+       @echo "make boot [HDA=hda.img] [HDB=hdb.img] [ISO=livecd.iso] [SERIAL=yes]"
        @echo "                 Boot built/named ISO (uses qemu)"
        @echo "make update    Update an existing live CD ISO with new"
        @echo "                 virt-p2v script, without doing full rebuild"
@@ -104,6 +104,8 @@ endif
 ifneq ($(HDB),)
 QEMU_ARGS += -hdb $(HDB)
 endif
+SERIAL    = none
+QEMU_ARGS += -serial $(SERIAL)
 
 boot:
        $(QEMU) $(QEMU_ARGS)
diff --git a/README b/README
index 521cfb4..9801015 100644 (file)
--- a/README
+++ b/README
@@ -77,3 +77,13 @@ eg. from /var/lib/xen/images, to experiment with).  For example:
 
   cp /var/lib/xen/images/rhel5gax32fv.img .
   make boot HDA=rhel5gax32fv.img
+
+
+Serial console
+----------------------------------------------------------------------
+
+With livecd-tools >= 018, the CD should enable the serial console
+(ttyS0, 9600 8N1).
+
+You can test this with:
+  make boot [...] SERIAL=yes