]> git.ipfire.org Git - thirdparty/dracut.git/commit - dracut.sh
Add a --hostonly-nics option
authorKairui Song <kasong@redhat.com>
Wed, 21 Oct 2020 08:18:07 +0000 (16:18 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 26 Oct 2020 13:16:19 +0000 (14:16 +0100)
commit1e92f7285d42fbd3bc01f534f9bd646f6fdd9504
tree1828a2e3cad210fe9994ec1d03bbe0ee5c800f55
parente4483e5917b59918260ff0f0345abbea4a537f12
Add a --hostonly-nics option

Currently when network is enabled, dracut will install all network
drivers that are currently loaded, but some time only one NIC is needed
for the initramfs.

So for strict hostonly mode, add a --hostonly-nics option, user can
provide a list of NICs to be enabled, and only needed drivers for
specifed NICs will be installed so save space.

Signed-off-by: Kairui Song <kasong@redhat.com>
dracut.sh
modules.d/90kernel-network-modules/module-setup.sh