Modify kernel module installation routine to respect --hostonly.
authorVictor Lowther <victor.lowther@gmail.com>
Sat, 30 May 2009 03:53:11 +0000 (22:53 -0500)
committerVictor Lowther <victor.lowther@gmail.com>
Sat, 30 May 2009 04:07:56 +0000 (23:07 -0500)
commit4cf262689e21c6b1921d95f64ddf03bc6c4e95c8
treeb35568fb437c7d1987b910e8e5c2d52825b71030
parent3774d3cc1521103faca19e4a8ed6af5cb93cbecc
Modify kernel module installation routine to respect --hostonly.

If dracut was run with --hostonly, instmods will only load a module
into the initramfs if it is already loaded on the host machine.

This really trims the fat out of a --hostonly  generated initramfs, and
eliminates the need for the kernel-modules-loaded hook.

This patch also allows a module to flag that it should only load as
a dependency by exiting 255 instead of 0.  Currently, only the network module
uses this functionality.
dracut-functions