summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-01-02 11:11:21 +0100
committerHarald Hoyer <harald@redhat.com>2013-01-02 13:57:40 +0100
commit1db3d2615dbf2b3d4cbc2bea9b973019856fb1c2 (patch)
treef37c2c55ca31155f15d42c80e3c3c4337e1f54de
parent5204d1d36df3ca15573f0c869f6b42f3808eadfb (diff)
downloaddracut-1db3d2615dbf2b3d4cbc2bea9b973019856fb1c2.tar.gz
dracut-1db3d2615dbf2b3d4cbc2bea9b973019856fb1c2.tar.bz2
dracut-1db3d2615dbf2b3d4cbc2bea9b973019856fb1c2.zip
kernel-modules: create /etc/modprobe.d if it does not yet exist
https://bugzilla.redhat.com/show_bug.cgi?id=873220
-rwxr-xr-xmodules.d/90kernel-modules/parse-kernel.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules.d/90kernel-modules/parse-kernel.sh b/modules.d/90kernel-modules/parse-kernel.sh
index 7470905f..fa891bf3 100755
--- a/modules.d/90kernel-modules/parse-kernel.sh
+++ b/modules.d/90kernel-modules/parse-kernel.sh
@@ -20,6 +20,9 @@ for i in $(getargs rd.driver.pre -d rdloaddriver=); do
)
done
+
+[ -d /etc/modprobe.d ] || mkdir -p /etc/modprobe.d
+
for i in $(getargs rd.driver.blacklist -d rdblacklist=); do
(
IFS=,