summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-05-02 12:47:18 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-05-02 12:47:18 -0400
commit34652b616c1adda6379c47886caed3b219fc29d1 (patch)
tree4cc291b6b11ecaaac63380582deb0c43dd164697 /cobbler
parent13eff0d1bb7e36569a00bcd291d73781ab2351e4 (diff)
downloadthird_party-cobbler-34652b616c1adda6379c47886caed3b219fc29d1.tar.gz
third_party-cobbler-34652b616c1adda6379c47886caed3b219fc29d1.tar.xz
third_party-cobbler-34652b616c1adda6379c47886caed3b219fc29d1.zip
Do not add profiles that have -xen distros to PXE menu entries as there
is no chance of them booting there.
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/pxegen.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cobbler/pxegen.py b/cobbler/pxegen.py
index 8cb8c93..639c30b 100644
--- a/cobbler/pxegen.py
+++ b/cobbler/pxegen.py
@@ -177,6 +177,9 @@ class PXEGen:
pxe_menu_items = ""
for profile in profile_list:
distro = profile.get_conceptual_parent()
+ # xen distros can be ruled out as they won't boot
+ if distro.name.find("-xen") != -1:
+ continue
contents = self.write_pxe_file(None,None,profile,distro,False,include_header=False)
if contents is not None:
pxe_menu_items = pxe_menu_items + contents + "\n"