From 3b45c7e1a0234cae165300844c817e50e6bace9b Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Mon, 19 Oct 2020 22:11:23 +0800 Subject: [PATCH] 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 --- modules.d/95nfs/module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh index 4a8e140b..cfe0b965 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() {