[Ovirt-devel] [PATCH] Fix console order

Ian Main imain at redhat.com
Thu Aug 21 21:33:32 UTC 2008

This patch just changes the order of the consoles so that init messages
are always sent to tty0.  This allows these settings to work even on
machines without a serial port.

Signed-off-by: Ian Main <imain at redhat.com>
 ovirt-host-creator/common-install.ks |    2 +-
 wui-appliance/wui-devel.ks           |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ovirt-host-creator/common-install.ks b/ovirt-host-creator/common-install.ks
index 053c03b..9cdf976 100644
--- a/ovirt-host-creator/common-install.ks
+++ b/ovirt-host-creator/common-install.ks
@@ -7,6 +7,6 @@ firewall --disabled
 part / --size 550 --fstype ext2
 services --enabled=ntpd,ntpdate,collectd,iptables,network
 # This requires a new fixed version of livecd-creator to honor the --append settings.
-bootloader --timeout=1 --append="console=tty0 console=ttyS0,115200n8"
+bootloader --timeout=1 --append="console=ttyS0,115200n8 console=tty0"
 rootpw --iscrypted Xa8QeYfWrtscM
diff --git a/wui-appliance/wui-devel.ks b/wui-appliance/wui-devel.ks
index 6202e8b..c652e53 100644
--- a/wui-appliance/wui-devel.ks
+++ b/wui-appliance/wui-devel.ks
@@ -328,7 +328,7 @@ cobbler profile edit --name=$os-$ver-$arch --repos="f9-$arch f9-$arch-updates"
 # before Cobbler overwrites it
 cobbler distro add --name="oVirt-Node-$arch" --arch=$arch \
   --initrd=/var/lib/tftpboot/initrd0.img --kernel=/var/lib/tftpboot/vmlinuz0 \
-  --kopts="rootflags=loop root=/ovirt.iso rootfstype=iso9660 ro console=tty0 console=ttyS0,115200n8"
+  --kopts="rootflags=loop root=/ovirt.iso rootfstype=iso9660 ro console=ttyS0,115200n8 console=tty0"
 cobbler profile add --name=oVirt-Node-$arch --distro=oVirt-Node-$arch
 cobbler system add --netboot-enabled=1 --profile=oVirt-Node-$arch \
   --name=node3 --mac=00:16:3e:12:34:57

More information about the ovirt-devel mailing list