From 0c2c3f4c79b7660be01dc0838a6fe88ddefc0cd9 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 3 Jul 2011 16:28:56 -0400 Subject: fix module installation issues with BASEDIR Broken in 491a99. Signed-off-by: Dave Reisner --- mkinitcpio | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mkinitcpio b/mkinitcpio index 0b2a573..920a537 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -323,7 +323,10 @@ trap ERR if (( ${#ADDED_MODULES[*]} )); then mkdir -p "${MODPATHS[@]%/*}" - cp --parents "${MODPATHS[@]}" "$BUILDROOT" + + pushd "${BASEDIR:-/}" >/dev/null + cp --parents "${MODPATHS[@]/#$BASEDIR/.}" "$BUILDROOT" + popd >/dev/null msg "Generating module dependencies" /sbin/depmod -b "${TMPDIR}/root" "${KERNELVERSION}" -- cgit v1.2.3-24-g4f1b