summaryrefslogtreecommitdiffstats
path: root/mkinitcpio
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-05-03 04:02:53 +0200
committerAaron Griffin <aaron@archlinux.org>2006-05-03 04:02:53 +0200
commitad1050964eabbbc00547e8c6c91d8a7c3f13598f (patch)
tree79962456d502bbbb8a072568f31bd18e99b85099 /mkinitcpio
parent66f28ea341f293cbddd30242f9ea03673d4674d2 (diff)
downloadmkinitcpio-ad1050964eabbbc00547e8c6c91d8a7c3f13598f.tar.gz
mkinitcpio-ad1050964eabbbc00547e8c6c91d8a7c3f13598f.tar.xz
Merged autodetect changes from tpowa.
Removed older subsystem specific scripts, replaced then with 'modload' just to keep the option in place. git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@43 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'mkinitcpio')
-rw-r--r--mkinitcpio11
1 files changed, 6 insertions, 5 deletions
diff --git a/mkinitcpio b/mkinitcpio
index e1581d0..c50e9f0 100644
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -10,8 +10,6 @@
# use "x${var}" = "x" to test for nulls/empty strings
# incase of embedded spaces, quote all path names and string comarpisons
#
-# TODO
-# hook help: help() function in install script, "-h base"
# Settings
@@ -118,9 +116,12 @@ for hook in $HOOKS; do
done
if [ "${HAS_MODULES}" == "y" ]; then
- add_file "${MODULEDIR}/modules.dep"
- add_file "${MODULEDIR}/modules.alias"
- add_file "${MODULEDIR}/modules.symbols"
+ [ -e /tmp${MODULEDIR}/ ] && rm -r /tmp${MODULEDIR}/
+ cp --parents `grep "file /lib/modules" .tmpfilelist | awk '{print $2}'` /tmp/
+ depmod -b /tmp ${KERNELVERSION}
+ add_file /tmp${MODULEDIR}/modules.dep ${MODULEDIR}/modules.dep
+ add_file /tmp${MODULEDIR}/modules.alias ${MODULEDIR}/modules.alias
+ add_file /tmp${MODULEDIR}/modules.symbols ${MODULEDIR}/modules.symbols
fi
if [ "x$GENIMG" != "x" ]; then