diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-10-25 14:17:30 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-10-25 14:17:30 -0400 |
commit | ea3d6fb47c353062d99d3adac68c1f214485a8e1 (patch) | |
tree | abc3671b1217248db195d63e8d9af2db80c8fdd0 /cobbler | |
parent | 61c08a90594c899c89be739321a915f948a09cba (diff) | |
download | third_party-cobbler-ea3d6fb47c353062d99d3adac68c1f214485a8e1.tar.gz third_party-cobbler-ea3d6fb47c353062d99d3adac68c1f214485a8e1.tar.xz third_party-cobbler-ea3d6fb47c353062d99d3adac68c1f214485a8e1.zip |
Fix per-system templating work for PXE (reported by Tim Foreman).
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/action_sync.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py index 725bf7d..fb7697a 100644 --- a/cobbler/action_sync.py +++ b/cobbler/action_sync.py @@ -468,8 +468,8 @@ class BootSync: # kickstart path (if kickstart is used) if kickstart_path is not None and kickstart_path != "": # if kickstart path is on disk, we've already copied it into - # the HTTP mirror, so make it something anaconda can get at - if kickstart_path.startswith("/"): + # the HTTP mirror, so make it something anaconda can get at. + if kickstart_path.startswith("/") or kickstart_path.find("/cobbler/kickstarts/") != -1: pxe_fn = self.get_pxe_filename(system.name) kickstart_path = "http://%s/cobbler/kickstarts_sys/%s/ks.cfg" % (self.settings.server, pxe_fn) append_line = "%s ks=%s" % (append_line, kickstart_path) |