From: Kairui Song Date: Mon, 19 Oct 2020 14:11:23 +0000 (+0800) Subject: 95nfs: Install less module if hostonly mode is strict X-Git-Tag: 051~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b45c7e1a0234cae165300844c817e50e6bace9b;p=thirdparty%2Fdracut.git 95nfs: Install less module if hostonly mode is strict For strict hostonly mode, only install currently loaded modules instead of a bunch of driver that may not be needed. Signed-off-by: Kairui Song --- diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh index 4a8e140b3..cfe0b965a 100755 --- a/modules.d/95nfs/module-setup.sh +++ b/modules.d/95nfs/module-setup.sh @@ -38,7 +38,7 @@ depends() { # called by dracut installkernel() { - hostonly='' instmods =net/sunrpc =fs/nfs ipv6 nfs_acl nfs_layout_nfsv41_files + hostonly=$(optional_hostonly) instmods =net/sunrpc =fs/nfs ipv6 nfs_acl nfs_layout_nfsv41_files } cmdline() {