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

Michael DeHaan mdehaan at redhat.com
Fri Oct 12 19:57:22 UTC 2007


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




More information about the et-mgmt-tools mailing list