summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/action_sync.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 55cdad5..fab96a6 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -129,7 +129,14 @@ class BootSync:
if x in ["kickstarts","kickstarts_sys","images","systems","distros","profiles","repo_profile","repo_system"]:
# clean out directory contents
utils.rmtree_contents(path)
+ pxelinux_dir = os.path.join(self.bootloc, "pxelinux.cfg")
+ images_dir = os.path.join(self.bootloc, "images")
+ if not os.path.exists(pxelinux_dir):
+ utils.makedir(pxelinux_dir)
+ if not os.path.exists(images_dir):
+ utils.makedir(images_dir)
utils.rmtree_contents(os.path.join(self.bootloc, "pxelinux.cfg"))
utils.rmtree_contents(os.path.join(self.bootloc, "images"))
+