]> git.ipfire.org Git - thirdparty/dracut.git/commit - dracut-functions.sh
check kernel module existance
authorCong Wang <xiyou.wangcong@gmail.com>
Tue, 15 May 2012 06:19:56 +0000 (14:19 +0800)
committerHarald Hoyer <harald@redhat.com>
Wed, 16 May 2012 09:43:25 +0000 (11:43 +0200)
commita6d3be9dd5e105c926b753fc3a26f0a91119c2a4
tree9468de7b1ca58542c93c08e9ac24fac6470b2dde
parent40913ad2199913eda4c61509348cb3f2a66d903c
check kernel module existance

This patch adds check of kernel module existance and
propagate errors to upper callers.

In case of break other callers of instmods(), this patch
adds an option '-c' to it, only when "-c" is specified
we fail, otherwise, errors are ignored.

Reported-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Harald Hoyer <harald@redhat.com>
dracut-functions.sh
dracut.sh
modules.d/90kernel-modules/module-setup.sh