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

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

 



Jack Neely wrote:
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

Applied, thanks!

--Michael

_______________________________________________
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