From ad1050964eabbbc00547e8c6c91d8a7c3f13598f Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 3 May 2006 02:02:53 +0000 Subject: 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 --- mkinitcpio | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'mkinitcpio') 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 -- cgit v1.2.3-24-g4f1b