summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-03-25 22:21:14 +0200
committerDave Reisner <dreisner@archlinux.org>2012-04-02 00:29:55 +0200
commit4511c1a56381d72947e311171e8acf0daf2bd2e6 (patch)
tree4f9acbd7cb1cab63b38b017162e7d2db0e3f7003
parent5a309568167623677c6310e7de99c62c273d3de7 (diff)
downloadmkinitcpio-4511c1a56381d72947e311171e8acf0daf2bd2e6.tar.gz
mkinitcpio-4511c1a56381d72947e311171e8acf0daf2bd2e6.tar.xz
add minor tweaks to make testing a bit easier
Since INSTDIR and HOOKDIR are understood as arrays now, declare them as such with the local 'hooks' and 'install' first to override the local FS. This makes the missing udev error go away and allows easier testing of other out of tree hooks. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--Makefile1
-rwxr-xr-xmkinitcpio4
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 46b0b09..a81c818 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ DIST_EXTRA = \
all: doc
install: all
+ mkdir -p ${DESTDIR}
$(foreach dir,${DIRS},install -dm755 ${DESTDIR}${dir};)
sed -e 's|^CONFIG=.*|CONFIG=/etc/mkinitcpio.conf|' \
diff --git a/mkinitcpio b/mkinitcpio
index bb34add..b72557a 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -17,8 +17,8 @@ shopt -s extglob
# Settings
FUNCTIONS=functions
CONFIG=mkinitcpio.conf
-HOOKDIR=hooks
-INSTDIR=install
+HOOKDIR=(hooks /usr/lib/initcpio/hooks /lib/initcpio/hooks)
+INSTDIR=(install /usr/lib/initcpio/install /lib/initcpio/install)
PRESETDIR=mkinitcpio.d
COMPRESSION=gzip