[Ovirt-devel] [PATCH node-image] increase timeout to 30s for CD/USB boot

Alan Pevec apevec at redhat.com
Sun Feb 1 22:23:47 UTC 2009


timeout quickly for PXE boot
---
 common-install.ks |    2 +-
 ovirt-pxe         |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/common-install.ks b/common-install.ks
index 8e34301..0c26d9b 100644
--- a/common-install.ks
+++ b/common-install.ks
@@ -7,7 +7,7 @@ firewall --disabled
 part / --size 550 --fstype ext2
 services --enabled=ntpd,ntpdate,collectd,iptables,network,rsyslog
 # This requires a new fixed version of livecd-creator to honor the --append settings.
-bootloader --timeout=5 --append="console=tty0 console=ttyS0,115200n8"
+bootloader --timeout=30 --append="console=tty0 console=ttyS0,115200n8"
 
 # not included by default in Fedora 10 livecd initramfs
 device virtio_blk
diff --git a/ovirt-pxe b/ovirt-pxe
index 5223990..b605644 100755
--- a/ovirt-pxe
+++ b/ovirt-pxe
@@ -32,3 +32,6 @@ livecd-iso-to-pxeboot $ISO
 # append BOOTIF with PXE MAC info
 f=tftpboot/pxelinux.cfg/default
 grep -q 'IPAPPEND 2' $f || sed -i '/KERNEL/a \\tIPAPPEND 2' $f
+
+# timeout quickly for PXE boots
+sed -i 's/timeout.*/timeout 1/' $f
-- 
1.6.0.6




More information about the ovirt-devel mailing list