summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2013-05-22 16:20:36 +0200
committerVijay Bellur <vbellur@redhat.com>2013-05-29 11:26:40 -0700
commit06036dd18d67bf55111a46915f702078fdf8e65b (patch)
treee93b4ca4ae91477ee04bde1b6a24c5f73332d620 /glusterfs.spec.in
parent0a4c0eac0aeeec88cb9bfeb08c2eac8b98be4622 (diff)
rpm: automatically load the fuse module on EL5
The fuse module needs to be loaded before /dev/fuse can be used. On RHEL6 and Fedora the module is loaded on demand. RHEL5 needs to load the module manually. This change add a script under /etc/sysconfig/modules/ that loads the fuse module on boot and packages it in the EL5 version of glusterfs-fuse. One of the features of GlusterFS is to not depend on additional fuse userspace. The conditional requires on /usr/bin/fusermount is not needed, this command is never called in the current version (even though is it referenced in the sources). BUG: 947830 Change-Id: I166327b8f2dff2c150368bdf5ea917af259186b2 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/5102 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index b7576d536..c54dcb50d 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -605,6 +605,11 @@ cd ..
%{__rm} -f %{buildroot}%{_sysconfdir}/init.d/glusterd
%endif
+%if 0%{?rhel} && 0%{?rhel} <= 5
+%{__install} -D -p -m 0755 extras/init.d/rhel5-load-fuse.modules \
+ %{buildroot}%{_sysconfdir}/sysconfig/modules/glusterfs-fuse.modules
+%endif
+
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/glusterd
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/glusterfs
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/glusterfsd
@@ -855,6 +860,9 @@ fi
%if 0%{?_with_fusermount:1}
%{_bindir}/fusermount-glusterfs
%endif
+%if 0%{?rhel} && 0%{?rhel} <= 5
+%{_sysconfdir}/sysconfig/modules/glusterfs-fuse.modules
+%endif
%files server
%defattr(-,root,root,-)