Skip to contentSkip to conversation

KVM test: Fix RHEL 3.9 32 bit installation

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Apr 19, 2010 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM test: Fix RHEL 3.9 32 bit installation

Fix a long standing bug where the unattended installs for RHEL 3.9 32 bit were failing due to some limitations on the boot install kernel for this specific version. Instead of using dhclient, resort to static IP configuration and bring joy to the land. This modification to the kickstart file does not regress 3.9 64 bit.

Special thanks go to David S. Ahern <[email protected]> for the time spent on resolving this problem.

---
 client/tests/kvm/unattended/RHEL-3-series.ks |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
client/tests/kvm/unattended/RHEL-3-series.ks +2 -3
index ad748cb..884b386 100644
@@ -24,10 +24,9 @@ skipx
 
 %post --interpreter /usr/bin/python
 import socket, os
-os.system('dhclient')
+os.system('/sbin/ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up')
+os.system('/sbin/route add default gw 10.0.2.2')
 os.system('chkconfig sshd on')
-os.system('iptables -F')
-os.system('echo 0 > /selinux/enforce')
 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 server.bind(('', 12323))
 server.listen(1)
Signature · 1 line
1.6.6.1