There you go.
-Jeroen
>From b90d1c14a498283ff504780e53ff393899d31ab1 Mon Sep 17 00:00:00 2001
From: Jeroen van Meeuwen (Fedora Unity) <[EMAIL PROTECTED]>
Date: Wed, 3 Dec 2008 11:42:12 +0100
Subject: [PATCH] Allow the $menu_label variable to be used in pxesystem.template.
- Excluding the archs with special pxesystem_$arch.template files, because
I can't verify
---
cobbler/pxegen.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/cobbler/pxegen.py b/cobbler/pxegen.py
index 4ea9dee..f4f2152 100644
--- a/cobbler/pxegen.py
+++ b/cobbler/pxegen.py
@@ -471,9 +471,10 @@ class PXEGen:
# store variables for templating
metadata["menu_label"] = ""
- if profile and not arch == "ia64" and system is None:
- metadata["menu_label"] = "MENU LABEL %s" % profile.name
- metadata["profile_name"] = profile.name
+ if profile:
+ if not arch in [ "ia64", "ppc", "ppc64", "s390x" ]:
+ metadata["menu_label"] = "MENU LABEL %s" % profile.name
+ metadata["profile_name"] = profile.name
elif image:
metadata["menu_label"] = "MENU LABEL %s" % image.name
metadata["profile_name"] = image.name
--
1.6.0.4
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler