summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-09-18 14:39:58 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-09-18 14:39:58 -0400
commit691b1fddebb4eeae63a14dd47ca498762e7279b7 (patch)
tree0ca264366f3d50eed065d3ad0ed4eb2bf4a3b3e4
parent627af2331e236347883376a6af0edb4de7449e52 (diff)
downloadcobbler-691b1fddebb4eeae63a14dd47ca498762e7279b7.tar.gz
cobbler-691b1fddebb4eeae63a14dd47ca498762e7279b7.tar.xz
cobbler-691b1fddebb4eeae63a14dd47ca498762e7279b7.zip
When editing a distro, make updates automatically regenerate the PXE menu. Just another feature towards eliminating
reasons to need to run "cobbler sync".
-rw-r--r--CHANGELOG1
-rw-r--r--cobbler/action_litesync.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 04f64ee0..0f186fc3 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -14,6 +14,7 @@ Cobbler CHANGELOG
- (FEAT) added /usr/bin/cobbler-setup tool
- (FEAT) cobbler report gains additional options for Wiki formatting, csv, and showing only certain fields
- (FEAT) changed default kernel options to include ksdevice=bootif (not ksdevice=eth0) and added ipappend 2 to PXE
+- (FEAT) distro edits now no longer require a sync to rebuild the PXE menu
- ??? - 1.2.5 (pending)
- (BUGF) expose --arch for "cobbler image add"
diff --git a/cobbler/action_litesync.py b/cobbler/action_litesync.py
index 039e2edb..1fa7295f 100644
--- a/cobbler/action_litesync.py
+++ b/cobbler/action_litesync.py
@@ -70,7 +70,9 @@ class BootLiteSync:
# cascade sync
kids = distro.get_children()
for k in kids:
- self.add_single_profile(k.name)
+ self.add_single_profile(k.name, rebuild_menu=False)
+ self.sync.pxegen.make_pxe_menu()
+
def add_single_image(self, name):
image = self.images.find(name=name)