summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Laska <jlaska@dell-t5400.test.redhat.com>2008-12-10 11:14:22 -0500
committerJames Laska <jlaska@dell-t5400.test.redhat.com>2008-12-10 11:14:22 -0500
commitf6e87627b6f8e5a151547435c3e05ac152687a34 (patch)
tree6a12dd0c7f859ed965fbabe6b5d08c5aa398d1a4
parent39bed0152f707bb5a49f3221ce97d650ff83e080 (diff)
downloadcobbler-f6e87627b6f8e5a151547435c3e05ac152687a34.tar.gz
cobbler-f6e87627b6f8e5a151547435c3e05ac152687a34.tar.xz
cobbler-f6e87627b6f8e5a151547435c3e05ac152687a34.zip
Ooops, don't forget to create the yaboot binary and config directories.
-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)