[PATCH] Inherited profiles can put ks=<<inherit>> in the pxe configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>
NCSU Campus Linux Services Lead
Office of Information Technology, NC State University
GPG Fingerprint: 1917 5AC1 E828 9337 7AA4  EA6B 213B 765F 3B6A 5B89

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux