]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(kernel-network-modules): allow specifying empty --hostonly-nics
authorCoiby Xu <coxu@redhat.com>
Sun, 24 Apr 2022 02:52:33 +0000 (10:52 +0800)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Sun, 24 Apr 2022 05:28:16 +0000 (05:28 +0000)
commitab6f57339ad77b5bc116400f7b66580745bfc563
treef9802cbdd6aaf6fb980cebc9215584141e9927bf
parentd615934311e25146bb37943bf1385a19dfdbd9e8
fix(kernel-network-modules): allow specifying empty --hostonly-nics

Commit 1e92f728 ("Add a --hostonly-nics option") allows only installing
the network drivers for specified NICs. But it doesn't allow an emtpy
--hostonly-nics. Specifying empty hostonly-nics is needed to address the
following use cases,
 - drivers/s390/net is installed regardless of --hostonly-nics. There is
   no need to repeat it.
 - get_dev_module couldn't find the driver for a bond or a bridge
   network interface so it's better for a module to install a bond
   or bridge driver itself
 - dracut kdump module wants to install the needed network drivers by
   itself because it can't add the --hostonly-nics option to dracut when
   itself is a dracut module

This patch distinguishes between an empty --hostonly-nics and --hostonly-nics
not added so a user can pass an empty --hostonly-nics option.
modules.d/90kernel-network-modules/module-setup.sh