summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG4
-rw-r--r--cobbler.spec9
-rw-r--r--cobbler/action_sync.py7
3 files changed, 16 insertions, 4 deletions
diff --git a/CHANGELOG b/CHANGELOG
index e506f05..774b02f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -4,6 +4,10 @@ Cobbler CHANGELOG
- Wed May 27 2008 - 1.1.0
- start devel branch
+- Thr May 28 2008 - 1.0.1
+- Fix misformatted warning in "check"
+- Do not own tftpboot
+
- Wed May 27 2008 - 1.0.0
- Merge devel branch onto master, this is 1.0
diff --git a/cobbler.spec b/cobbler.spec
index 111072d..6819e42 100644
--- a/cobbler.spec
+++ b/cobbler.spec
@@ -110,9 +110,6 @@ test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
/var/www/cobbler/webui/*.js
/var/www/cobbler/webui/*.png
/var/www/cobbler/webui/*.html
-%defattr(-,root,root)
-%dir /tftpboot/pxelinux.cfg
-%dir /tftpboot/images
%{_bindir}/cobbler
%{_bindir}/cobblerd
%dir /etc/cobbler
@@ -188,9 +185,13 @@ test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
%changelog
-* Wed May 27 2008 Michael DeHaan <mdehaan@redhat.com> - 1.1.0-1
+* Thu May 28 2008 Michael DeHaan <mdehaan@redhat.com> - 1.1.0-1
- Upstream chnages (see CHANGELOG)
+* Thu May 28 2008 Michael DeHaan <mdehaan@redhat.com> - 1.0.1-1
+- Upstream changes (see CHANGELOG)
+- stop owning files in tftpboot
+
* Wed May 27 2008 Michael DeHaan <mdehaan@redhat.com> - 1.0.0-2
- Upstream changes (see CHANGELOG)
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"))
+