>> 3.2.2. Fix #83771, #97700, #98590, #98594, #98661, #98746.
authorTim Yamin <plasmaroo@gentoo.org>
Tue, 12 Jul 2005 17:26:58 +0000 (17:26 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Tue, 12 Jul 2005 17:26:58 +0000 (17:26 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@251 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/initrd.scripts
generic/modprobe
genkernel
genkernel.conf

index 100648c65b2b8db8daef6cbddceebd62fc88dac3..228fc0179d320081f4738d1b4738cf49059e19c7 100644 (file)
@@ -39,10 +39,15 @@ modules_scan() {
                        echo -e "${BOLD}   ::${NORMAL} Skipping ${x}..."
                elif [ "${MLOAD}" = "${MLIST}" ] # == No change == No specified no-load
                then
-                       echo -ne "${BOLD}   ::${NORMAL} Scanning for ${x}..."
-                       modprobe ${x} -n
-                       backup
-                       echo -ne "${NORMAL}"
+                       [ -n "${DEBUG}" ] && echo -ne "${BOLD}   ::${NORMAL} Checking for ${x}..."
+                       # find -name does not work since the return status is always zero
+                       if find /lib/modules | grep "${x}${KSUFF}" 2>/dev/null
+                       then
+                               echo -ne "${BOLD}   ::${NORMAL} Scanning for ${x}..."
+                               modprobe ${x} -n
+                               backup
+                               echo -ne "${NORMAL}"
+                       fi
                else
                        echo -e "${BOLD}   ::${NORMAL} Skipping ${x}..."
                fi
index 2265b4f1dffc329dba524e70fceb9c9bdaec0ac6..90cac83603a3515774b6036d6aaa8ea343d67b46 100755 (executable)
@@ -65,7 +65,7 @@ is_module_already_loaded()
 
 real_mod_path()
 {
-       # find doesn't work like we expect, let's add a grep to it
+       # Find -name is no good since the return status is always zero
        find /lib/modules | grep "${1}${KSUFF}"
 }
 
index 64ee5b5c7a90ec000112863697e4dac168516116..eff9f391904c8cd83184d61afd4b4e551585ce34 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -2,7 +2,7 @@
 # Genkernel v3
 
 PATH="/bin:/usr/bin:/sbin:/usr/sbin"
-GK_V='3.2.1'
+GK_V='3.2.2'
 
 TEMP='/var/tmp/genkernel'
 TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.
index 37891cde89a62c39ac7c156fca632f0e945804e2..f450f0eee90c78d007fdbc02bc063e7a5190b6b1 100755 (executable)
@@ -105,7 +105,7 @@ LVM2_DIR="LVM2.${LVM2_VER}"
 LVM2_SRCTAR="${GK_SHARE}/pkg/LVM2.${LVM2_VER}.tgz"
 LVM2_BINCACHE="%%CACHE%%/LVM2.${LVM2_VER}-%%ARCH%%.tar.bz2"
 
-DMRAID_VER="1.0.0.rc6"
+DMRAID_VER="1.0.0.rc8"
 DMRAID_DIR="dmraid/${DMRAID_VER}"
 DMRAID_SRCTAR="${GK_SHARE}/pkg/dmraid-${DMRAID_VER}.tar.bz2"
 DMRAID_BINCACHE="%%CACHE%%/dmraid-${DMRAID_VER}-%%ARCH%%.tar.bz2"
@@ -120,4 +120,3 @@ E2FSPROGS_VER="1.38"
 E2FSPROGS_DIR="e2fsprogs-${E2FSPROGS_VER}"
 E2FSPROGS_SRCTAR="${GK_SHARE}/pkg/e2fsprogs-${E2FSPROGS_VER}.tar.gz"
 BLKID_BINCACHE="%%CACHE%%/blkid-${E2FSPROGS_VER}-%%ARCH%%.bz2"
-