]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95nfs: Install less module if hostonly mode is strict
authorKairui Song <kasong@redhat.com>
Mon, 19 Oct 2020 14:11:23 +0000 (22:11 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 30 Oct 2020 09:13:37 +0000 (10:13 +0100)
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 <kasong@redhat.com>
modules.d/95nfs/module-setup.sh

index 4a8e140b391b44e27863a467d56a9c3993011480..cfe0b965acf7f0bc66e4119cb4a7477b01372258 100755 (executable)
@@ -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() {