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 <kasong@redhat.com>
master
Kairui Song 2020-10-19 22:11:23 +08:00 committed by Harald Hoyer
parent 5817934936
commit 3b45c7e1a0
1 changed files with 1 additions and 1 deletions

View File

@ -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() {