[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Any ideas why this fails?:
- From: "Riggs, Ben" <rigg0022 umn edu>
- To: Discussion list about Kickstart <kickstart-list redhat com>
- Subject: Any ideas why this fails?:
- Date: Wed, 22 Aug 2007 10:18:27 -0500
<snip>
%include /tmp/network-include
%pre --interpreter /usr/bin/python
#find-ethN configures network info
import os
#Determine which ethN interface matches mac address supplied by ldap
network_statement = "network --bootproto=dhcp --onboot=on --noipv6"
pipe = os.popen("ifconfig -a", 'r')
for line in pipe.readlines():
if '00:e0:81:33:d6:c7' in line.lower():
network_statement = "".join((network_statement, " --device=",
line.split()[0].strip(), "\n"))
file = open("/tmp/network-include", 'w')
file.write(network_statement)
file.close()
</snip>
I can't find anything glaringly obvious. I know the python works. When
anaconda runs, it still asks for network info manually.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]