From e266d309b8f8583c823eb894f91d0cfa4fe28092 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Sat, 13 May 2006 00:30:28 +0000 Subject: Modify /tmp handling when basedir is specified git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@99 880c04e9-e011-0410-abf7-b926e227c9cd --- mkinitcpio | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index c502354..45b6b1a 100644 --- a/mkinitcpio +++ b/mkinitcpio @@ -138,12 +138,12 @@ done if [ "${HAS_MODULES}" == "y" ]; then echo ":: Generating module dependancies" - [ -e /tmp${MODULEDIR}/ ] && rm -rf /tmp${MODULEDIR}/ - cp --parents $(grep "file /lib/modules" ${FILELIST} | awk '{print $2}') /tmp/ + [ -e /tmp/lib/modules/${KERNELVERSION}/ ] && rm -r /tmp/lib/modules/${KERNELVERSION}/ + cp -r --parents $(grep "file /lib/modules" ${FILELIST} | 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 + add_file /tmp/lib/modules/${KERNELVERSION}/modules.dep ${MODULEDIR}/modules.dep + add_file /tmp/lib/modules/${KERNELVERSION}/modules.alias ${MODULEDIR}/modules.alias + add_file /tmp/lib/modules/${KERNELVERSION}/modules.symbols ${MODULEDIR}/modules.symbols fi if [ "x$GENIMG" != "x" ]; then -- cgit v1.2.3-24-g4f1b