kernel-modules: create /etc/modprobe.d if it does not yet exist
authorHarald Hoyer <harald@redhat.com>
Wed, 2 Jan 2013 10:11:21 +0000 (11:11 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 2 Jan 2013 12:57:40 +0000 (13:57 +0100)
https://bugzilla.redhat.com/show_bug.cgi?id=873220

modules.d/90kernel-modules/parse-kernel.sh

index 7470905..fa891bf 100755 (executable)
@@ -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=,