]> git.pld-linux.org Git - packages/dlm.git/commitdiff
Pull /sys/kernel/config mount when started via systemd
authorJacek Konieczny <jajcus@jajcus.net>
Mon, 6 Jan 2014 11:09:56 +0000 (12:09 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Mon, 6 Jan 2014 11:09:56 +0000 (12:09 +0100)
dlm-systemd-configfs.patch [new file with mode: 0644]
dlm.spec

diff --git a/dlm-systemd-configfs.patch b/dlm-systemd-configfs.patch
new file mode 100644 (file)
index 0000000..ac94eb0
--- /dev/null
@@ -0,0 +1,10 @@
+diff -dur dlm-4.0.2.orig/init/dlm.service dlm-4.0.2/init/dlm.service
+--- dlm-4.0.2.orig/init/dlm.service    2013-07-31 17:50:26.000000000 +0200
++++ dlm-4.0.2/init/dlm.service 2014-01-06 12:07:28.823033320 +0100
+@@ -1,5 +1,6 @@
+ [Unit]
+ Description=dlm control daemon
++Requires=sys-kernel-config.mount
+ After=syslog.target network.target corosync.service sys-kernel-config.mount
+ [Service]
index cb73222d4b47938f17589377b090c03b20c14397..6ed80593d244fdf0435b4bfc07a105316d00bee5 100644 (file)
--- a/dlm.spec
+++ b/dlm.spec
@@ -15,6 +15,7 @@ Source1:      %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}.tmpfiles
 Source4:       dlm.conf
+Patch0:                %{name}-systemd-configfs.patch
 URL:           http://sources.redhat.com/cluster/dlm/
 BuildRequires: corosync-devel >= 2.0
 %{?with_dlm_stonith:BuildRequires:     libxml2-devel >= 2.0}
@@ -24,7 +25,7 @@ BuildRequires:        rpmbuild(macros) >= 1.644
 BuildRequires: systemd-devel
 Requires:      %{name}-libs = %{version}-%{release}
 Requires:      rc-scripts
-Requires:      systemd-units >= 38
+Requires:      systemd-units >= 208-8
 Requires(post,preun):  /sbin/chkconfig
 Obsoletes:     cluster-dlm
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -68,6 +69,8 @@ Pliki nagłówkowe i dokumentacja programisty dla DLM-a.
 %prep
 %setup -q
 
+%patch0 -p1
+
 %build
 %{__make} \
        PREFIX=%{_prefix} \
This page took 0.098015 seconds and 4 git commands to generate.