diff options
author | Jesse Keating <jkeating@redhat.com> | 2009-01-16 16:29:11 -0800 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2009-01-16 17:30:35 -0800 |
commit | 79fface5fe168458e45672a6cd3dab0bf8773234 (patch) | |
tree | 3410fd9dff9aae7cc254a677588bd8db7ee2cc3c /scripts | |
parent | 7f2d5ed9b0f5ff232bc88b664d54a056ef8e1539 (diff) | |
download | anaconda-79fface5fe168458e45672a6cd3dab0bf8773234.tar.gz anaconda-79fface5fe168458e45672a6cd3dab0bf8773234.tar.xz anaconda-79fface5fe168458e45672a6cd3dab0bf8773234.zip |
Look in the right path for kernel module lists.
We have to look to where we've expanded the kernel in order to read
the module list sets to expand our module list.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mk-images | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/mk-images b/scripts/mk-images index 951ca8a75..401c15a91 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 |