summaryrefslogtreecommitdiffstats
path: root/cobbler/pxegen.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/pxegen.py')
-rw-r--r--cobbler/pxegen.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cobbler/pxegen.py b/cobbler/pxegen.py
index e39fdc8..a8a9af6 100644
--- a/cobbler/pxegen.py
+++ b/cobbler/pxegen.py
@@ -286,6 +286,8 @@ class PXEGen:
kickstart_path = "http://%s/cblr/svc/?op=ks&system=%s" % (blended["http_server"], system.name)
elif kickstart_path.startswith("/") or kickstart_path.find("/cobbler/kickstarts/") != -1:
kickstart_path = "http://%s/cblr/svc/?op=ks&profile=%s" % (blended["http_server"], profile.name)
+ if self.settings.register_new_installs:
+ kickstart_path = kickstart_path + "&reg=1"
if distro.breed is None or distro.breed == "redhat":
append_line = "%s ks=%s" % (append_line, kickstart_path)