summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-12-12 12:10:06 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-12-12 12:10:06 -0500
commit70f597912b3915926c079243765c09a62f14f193 (patch)
treef7330845832c2781448b6f6990c63e9a62b0e7a7
parent0d51faef12566c0699ef91ee447ade61b8b952dc (diff)
downloadcobbler-70f597912b3915926c079243765c09a62f14f193.tar.gz
cobbler-70f597912b3915926c079243765c09a62f14f193.tar.xz
cobbler-70f597912b3915926c079243765c09a62f14f193.zip
Apply James Laska's yaboot patch
-rw-r--r--cobbler/action_sync.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 68b5b452..40e5c443 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -136,6 +136,8 @@ class BootSync:
utils.rmtree_contents(path)
pxelinux_dir = os.path.join(self.bootloc, "pxelinux.cfg")
images_dir = os.path.join(self.bootloc, "images")
+ yaboot_bin_dir = os.path.join(self.bootloc, "ppc")
+ yaboot_cfg_dir = os.path.join(self.bootloc, "etc")
s390_dir = os.path.join(self.bootloc, "s390x")
rendered_dir = os.path.join(self.settings.webdir, "rendered")
if not os.path.exists(pxelinux_dir):
@@ -144,9 +146,15 @@ class BootSync:
utils.mkdir(images_dir)
if not os.path.exists(rendered_dir):
utils.mkdir(rendered_dir)
+ if not os.path.exists(yaboot_bin_dir):
+ utils.mkdir(yaboot_bin_dir)
+ if not os.path.exists(yaboot_cfg_dir):
+ utils.mkdir(yaboot_cfg_dir)
utils.rmtree_contents(os.path.join(self.bootloc, "pxelinux.cfg"))
utils.rmtree_contents(os.path.join(self.bootloc, "images"))
utils.rmtree_contents(os.path.join(self.bootloc, "s390x"))
+ utils.rmtree_contents(os.path.join(self.bootloc, "ppc"))
+ utils.rmtree_contents(os.path.join(self.bootloc, "etc"))
utils.rmtree_contents(rendered_dir)