[module-init-tools] modprobe-dist.conf: remove synchronous mount/umount in binfmt_misc (un)load

Jon Masters jcm at fedoraproject.org
Fri Apr 15 06:46:42 UTC 2011


commit f3c2636197aae606d6e867e1c60ed44d19868ed6
Author: Jon Masters <jcm at jonmasters.org>
Date:   Fri Apr 15 02:41:25 2011 -0400

    modprobe-dist.conf: remove synchronous mount/umount in binfmt_misc (un)load
    
    Previously we (for legacy reasons) were doing synchronous mount and unmount
    calls in module load and unload. In future Fedora releases, systemd now does
    the mount of corresponding filesystems using autofs, so there is no need to
    make such calls, which were never really advisable to do in module load.
    
    Signed-off-by: Jon Masters <jcm at jonmasters.org>

 modprobe-dist.conf |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/modprobe-dist.conf b/modprobe-dist.conf
index eadd5c7..5ae3ed5 100644
--- a/modprobe-dist.conf
+++ b/modprobe-dist.conf
@@ -120,7 +120,6 @@ alias digest_null crypto_null
 alias compress_null crypto_null
 alias sha384 sha512
 install binfmt-0000 /bin/true
-install binfmt_misc /sbin/modprobe --first-time --ignore-install binfmt_misc && { /bin/mount -t binfmt_misc none /proc/sys/fs/binfmt_misc > /dev/null 2>&1 || :; }
 install nfsd /sbin/modprobe --first-time --ignore-install nfsd && { /bin/mount -t nfsd nfsd /proc/fs/nfsd > /dev/null 2>&1 || :; }
 install sunrpc /sbin/modprobe --first-time --ignore-install sunrpc && { /bin/mount -t rpc_pipefs sunrpc /var/lib/nfs/rpc_pipefs > /dev/null 2>&1 || :; }
 install char-major-10 /bin/true
@@ -133,7 +132,6 @@ install net-pf-6 /bin/true
 install ov518_decomp { /sbin/modprobe ov511; } ; /sbin/modprobe --first-time --ignore-install ov518_decomp
 install scsi_hostadapter /bin/true
 install usbmouse /sbin/modprobe --first-time --ignore-install usbmouse && { /sbin/modprobe hid; /bin/true; }
-remove binfmt_misc { /bin/umount /proc/sys/fs/binfmt_misc > /dev/null 2>&1 || :; } ; /sbin/modprobe -r --first-time --ignore-remove binfmt_misc
 remove ov518_decomp /sbin/modprobe -r --first-time --ignore-remove ov518_decomp && { /sbin/modprobe -r ov511; /bin/true; }
 remove usbmouse { /sbin/modprobe -r hid; } ; /sbin/modprobe -r --first-time --ignore-remove usbmouse
 remove sunrpc { /bin/umount /var/lib/nfs/rpc_pipefs > /dev/null 2>&1 || :; } ; /sbin/modprobe -r --ignore-remove sunrpc


More information about the scm-commits mailing list