summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-10-04 09:09:58 +0200
committerAaron Griffin <aaron@archlinux.org>2006-10-04 09:09:58 +0200
commitbdb9d1b70cd5fcfa10dfe762795ac95ba71d6f10 (patch)
treefab861dc3ed9441259f9598cd12e1988173ac228
parentdfa0670d840d5019c4b12e87c4fb0a35e04f49fa (diff)
downloadmkinitcpio-bdb9d1b70cd5fcfa10dfe762795ac95ba71d6f10.tar.gz
mkinitcpio-bdb9d1b70cd5fcfa10dfe762795ac95ba71d6f10.tar.xz
/tmp cleanup and autodetection fixes (checked in previously)
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@172 880c04e9-e011-0410-abf7-b926e227c9cd
-rw-r--r--mkinitcpio6
1 files changed, 4 insertions, 2 deletions
diff --git a/mkinitcpio b/mkinitcpio
index b55648a..c22cc2d 100644
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -87,8 +87,7 @@ MODULEDIR="${BASEDIR}/lib/modules/${KERNELVERSION}"
if [ "x${BASEDIR}" != "x" ]; then
if [ "${BASEDIR:0:1}" != "/" ]; then
- echo "base directory '${BASEDIR}' must be an absolute path"
- exit 1
+ BASEDIR="$(pwd)/${BASEDIR}"
elif [ ! -d "${BASEDIR}" ]; then
echo "base directory '${BASEDIR}' does not exist or is not a directory"
exit 1
@@ -116,6 +115,9 @@ else
touch "${FILELIST}"
fi
+BASEDIR=$(echo ${BASEDIR} | tr -s /)
+MODULEDIR=$(echo ${MODULEDIR} | tr -s /)
+
source "${FUNCTIONS}"
if [ "${SHOW_AUTOMODS}" = "y" ]; then