From: Simon Wilkinson Date: Fri, 16 Jul 2010 20:58:33 +0000 (+0100) Subject: Linux: Load exportfs first X-Git-Tag: openafs-devel-1_5_76~98 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a495e0ff6b7f3ee07b77363fa513d24024199f38;p=packages%2Fo%2Fopenafs.git Linux: Load exportfs first The changes to use the exportfs interface to access cache files require that the exportfs module is loaded before our module. In 'normal' operation depmod, and modprobe, would take care of this for us, however our legacy installation format where we ship the kernel module outside of /lib/modules stops modprobe from working, and our init script uses insmod. So, explicitly load exportfs first. Note: I'm aware of just how much this sucks, and the fact that we really should just tidy up all of the packaging and init scripts around our kernel module - but this close to 1.6 branch is probably not the time for those kinds of changes. Change-Id: Icdc11482f4eb05419a806a2cd55852eaa5999638 Reviewed-on: http://gerrit.openafs.org/2443 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afsd/afs.rc.linux b/src/afsd/afs.rc.linux index 579034cf0..0833c18ac 100644 --- a/src/afsd/afs.rc.linux +++ b/src/afsd/afs.rc.linux @@ -201,6 +201,11 @@ load_client() { exit 1 fi + # We need exportfs in order to access the cache files. Load it, but + # ignore errors as on some machines it may be built in to the kernel, + # not a module + /sbin/modprobe exportfs >/dev/null 2>&1 + if [ -f $KSYMS_FILE ]; then # use the prefix command if required case $KERNEL_VERSION in