[PATCH] Look in the right path for kernel module lists.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We have to look to where we've expanded the kernel in order to read
the module list sets to expand our module list.
---
 scripts/mk-images |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index 951ca8a..401c15a 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -261,15 +261,15 @@ expandModuleSet() {
         if [ $char = '=' ]; then
 	    NAME=$(echo $name | cut -c2-)
 	    if [ "$NAME" = "ata" ]; then
-		SET="$SET $(egrep '(ata|ahci)' $MBD_DIR/lib/modules/$version/modules.block |sed -e 's/.ko//')"
+		SET="$SET $(egrep '(ata|ahci)' $KERNELROOT/lib/modules/$version/modules.block |sed -e 's/.ko//')"
 	    elif [ "$NAME" = "scsi" ]; then
-		SET="$SET $(sed -e 's/.ko//' $MBD_DIR/lib/modules/$version/modules.block)"
+		SET="$SET $(sed -e 's/.ko//' $KERNELROOT/lib/modules/$version/modules.block)"
 	    elif [ "$NAME" = "net" ]; then
-		SET="$SET $(sed -e 's/.ko//' $MBD_DIR/lib/modules/$version/modules.networking)"
+		SET="$SET $(sed -e 's/.ko//' $KERNELROOT/lib/modules/$version/modules.networking)"
 	    else
                 # Ignore if group list does not exist
-                if [ -e $MBD_DIR/lib/modules/$version/modules.$NAME ]; then
-		    SET="$SET $(sed -e 's/.ko//' $MBD_DIR/lib/modules/$version/modules.$NAME)"
+                if [ -e $KERNELROOT/lib/modules/$version/modules.$NAME ]; then
+		    SET="$SET $(sed -e 's/.ko//' $KERNELROOT/lib/modules/$version/modules.$NAME)"
                 fi
 	    fi
 	else
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux