]> git.pld-linux.org Git - packages/xen.git/commitdiff
- FHS compliant dump dir
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 29 Feb 2012 21:07:43 +0000 (21:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xen-dumpdir.patch -> 1.1

xen-dumpdir.patch [new file with mode: 0644]

diff --git a/xen-dumpdir.patch b/xen-dumpdir.patch
new file mode 100644 (file)
index 0000000..c0e7186
--- /dev/null
@@ -0,0 +1,32 @@
+diff -up xen-3.4.0/tools/Makefile.dump xen-3.4.0/tools/Makefile
+--- xen-3.4.0/tools/Makefile.dump      2009-05-18 13:05:38.000000000 +0200
++++ xen-3.4.0/tools/Makefile   2009-05-20 17:03:26.000000000 +0200
+@@ -46,7 +46,7 @@ all: subdirs-all
+ .PHONY: install
+ install: subdirs-install
+-      $(INSTALL_DIR) $(DESTDIR)/var/xen/dump
++      $(INSTALL_DIR) $(DESTDIR)/var/lib/xen/dump
+       $(INSTALL_DIR) $(DESTDIR)/var/log/xen
+       $(INSTALL_DIR) $(DESTDIR)/var/lib/xen
+       $(INSTALL_DIR) $(DESTDIR)/var/lock/subsys
+--- xen-4.0.0/tools/python/xen/xend/XendDomainInfo.py.orig     2010-02-02 20:43:01.000000000 +0000
++++ xen-4.0.0/tools/python/xen/xend/XendDomainInfo.py  2010-02-02 21:36:57.000000000 +0000
+@@ -2287,7 +2287,7 @@
+             # To prohibit directory traversal
+             based_name = os.path.basename(self.info['name_label'])
+             
+-            coredir = "/var/xen/dump/%s" % (based_name)
++            coredir = "/var/lib/xen/dump/%s" % (based_name)
+             if not os.path.exists(coredir):
+                 try:
+                     mkdir.parents(coredir, stat.S_IRWXU)
+@@ -2296,7 +2296,7 @@
+             if not os.path.isdir(coredir):
+                 # Use former directory to dump core
+-                coredir = '/var/xen/dump'
++                coredir = '/var/lib/xen/dump'
+             this_time = time.strftime("%Y-%m%d-%H%M.%S", time.localtime())
+             corefile = "%s/%s-%s.%s.core" % (coredir, this_time,
This page took 0.128109 seconds and 4 git commands to generate.