[et-mgmt-tools] [PATCH] Inherited profiles can put ks=<<inherit>> in the pxe configuration
Jack Neely
jjneely at ncsu.edu
Fri Oct 12 19:31:40 UTC 2007
This fixes the case where I was getting pxe stanzas generated with
"ks=<<inherit>>"
Jack Neely
---
cobbler/action_sync.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 5d3cd10..3de38a8 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -715,7 +715,9 @@ class BootSync:
# find kernel and initrd
kernel_path = os.path.join("/images",distro.name,os.path.basename(distro.kernel))
initrd_path = os.path.join("/images",distro.name,os.path.basename(distro.initrd))
- kickstart_path = profile.kickstart
+
+ # Find the kickstart if we inherit from another profile
+ kickstart_path = utils.blender(True, profile)["kickstart"]
# ---
# choose a template
--
1.5.3.1
--
Jack Neely <jjneely at ncsu.edu>
NCSU Campus Linux Services Lead
Office of Information Technology, NC State University
GPG Fingerprint: 1917 5AC1 E828 9337 7AA4 EA6B 213B 765F 3B6A 5B89
More information about the et-mgmt-tools
mailing list