]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
Disambiguate modules and drivers. modules are dracutmodules. drivers are kernel...
authorWarren Togami <wtogami@redhat.com>
Thu, 28 May 2009 18:27:02 +0000 (14:27 -0400)
committerWarren Togami <wtogami@redhat.com>
Thu, 28 May 2009 18:27:02 +0000 (14:27 -0400)
HACKING
dracut
dracut-functions
modules.d/40network/install
modules.d/90kernel-modules/install
test/dracut.conf.test

diff --git a/HACKING b/HACKING
index 614aa506a4875a4a3e8165c216903ec40e7fc6e8..261376783ae1af24050343840ff163c1b7ef2d07 100644 (file)
--- a/HACKING
+++ b/HACKING
@@ -13,8 +13,10 @@ kernel version (it defaults to using the current).   The appropriate
 modules will be copied over and things should be good to go.  If you'd
 like to customize the list of modules copied in, edit /etc/dracut.conf
 and set
-  modules="foo bar baz"
+  dracutmodules="foo bar baz"
 
+Note that dracut calls functional components in modules.d "modules" 
+while kernel modules are called "drivers".
 
 Requirements:
 * udev
diff --git a/dracut b/dracut
index 69cd88ffdf4c7f804ab93651adc8f47deee56f1e..a255a1424c066c0b2cbaefc1bf4d2df2f7956359 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -45,7 +45,7 @@ while (($# > 0)); do
        -f|--force) force=yes;;
        -m|--modules) dracutmodules_l="$2"; shift;;
        -o|--omit) omit_dracutmodules_l="$2"; shift;;
-       -d|--drivers) modules_l="$2"; shift;;
+       -d|--drivers) drivers_l="$2"; shift;;
        -h|--help) usage; exit 1 ;;
        --debug) debug="yes"; set -x;;
        -v|--verbose) beverbose="yes";;
@@ -68,7 +68,7 @@ done
 # these options override the stuff in the config file
 [[ $dracutmodules_l ]] && dracutmodules=$dracutmodules_l
 [[ $omit_dracutmodules_l ]] && omit_dracutmodules=$omit_dracutmodules_l
-[[ $modules_l ]] && modules=$modules_l
+[[ $drivers_l ]] && drivers=$drivers_l
 
 [[ $allowlocal && -f "$(dirname $0)/dracut-functions" ]] && dsrc="$(dirname $0)" || dsrc=/usr/lib/dracut
 if [[ -f $dsrc/dracut-functions ]]; then
@@ -109,7 +109,7 @@ trap 'rm -rf "$initdir"' 0 # clean up after ourselves no matter how we die.
 # Need to be able to have non-root users read stuff (rpcbind etc)
 chmod 755 "$initdir"
 
-export initdir hookdirs dsrc dracutmodules modules debug beverbose
+export initdir hookdirs dsrc dracutmodules drivers debug beverbose
 
 # Create some directory structure first
 for d in bin sbin usr/bin usr/sbin usr/lib etc proc sys sysroot tmp dev/pts var/run; do 
index ac22fcd635ee86ebac090577b0f017fdfb020cac..1e3f89162607a2995ed5e284270521522fa75723 100755 (executable)
@@ -252,7 +252,7 @@ check_modules() {
     done
 }
 
-# install modules, and handle installing all their dependencies as well.
+# install kernel modules, and handle installing all their dependencies as well.
 instmods() {
     local mod mpargs modpath modname cmd
     local srcmods="/lib/modules/$kernel/"
index 7a133489f8f3297ad59ad4ab784ab258796adc7a..e0ac5f58e2190ccb1b524284fb0aa72aaa66714e 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 dracut_install ip dhclient hostname
-instmods ${modules:-=net}
+instmods ${drivers:-=net}
 inst "$moddir/ifup" "/sbin/ifup"
 inst "$moddir/dhclient-script" "/sbin/dhclient-script"
 instmods =networking ecb arc4
index a0f894bf27032dc76fc212268942a798c9860fa8..41504357d7646c6d99a054d304d71ed41076d422 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 # FIXME: hard-coded module list of doom.
-instmods ${modules:-=ata =block sd_mod =fs}
+instmods ${drivers:-=ata =block sd_mod =fs}
 
 # Grab modules for all filesystem types we currently have mounted
 while read d mp t rest; do
index be118255bbe14325e5e40e15ba8df1cf10432b6b..454915fa5b995490481cfdace362e0b982926378 100644 (file)
@@ -1,3 +1,3 @@
 #dracutmodules="base crypt lvm kernel-modules debug resume rootfs-block udev-rules network NFS"
 #omit_dracutmodules="plymouth"
-#modules="ata_piix ext2 sd_mod"
+#drivers="ata_piix ext2 sd_mod"