Skip to content
Snippets Groups Projects
Commit dc973c1c authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Version 2010-11-25 09:58

M  src/hostinfo.py
M  src/hostinfo/pxelinux.py
parent 5469a62b
No related branches found
No related tags found
No related merge requests found
...@@ -251,8 +251,11 @@ if __name__ == '__main__': ...@@ -251,8 +251,11 @@ if __name__ == '__main__':
file["%s/%s" % (options.named, f)] = c file["%s/%s" % (options.named, f)] = c
if options.pxelinux: if options.pxelinux:
for (f, c) in hostinfo.pxelinux.generate(tree, host): ksinfo = ""
symlink["%s/%s" % (options.pxelinux, f)] = c for (mac, host, ksfile) in hostinfo.pxelinux.generate(tree, host):
ksinfo += "%s %s %s\n" % (mac, host, ksfile)
# symlink["%s/%s" % (options.pxelinux, mac)] = ksfile
file["%s/ksinfo" % options.pxelinux] = ksinfo
if options.pretty: if options.pretty:
result = "<?xml version='1.0' encoding='iso8859-1'?>\n\n" result = "<?xml version='1.0' encoding='iso8859-1'?>\n\n"
......
...@@ -7,5 +7,9 @@ def generate(tree, dhcphost): ...@@ -7,5 +7,9 @@ def generate(tree, dhcphost):
for i in tree._host_._interface_: for i in tree._host_._interface_:
if i.ethernet[0] and i._kickstart_: if i.ethernet[0] and i._kickstart_:
result.append(("01-" + i.ethernet[0].replace(':', '-'), result.append(("01-" + i.ethernet[0].replace(':', '-'),
i.name[0:],
i._kickstart_[0].file[0])) i._kickstart_[0].file[0]))
pass
pass
result.sort()
return result return result
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment