summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install/autodetect2
-rw-r--r--mkinitcpio8
2 files changed, 7 insertions, 3 deletions
diff --git a/install/autodetect b/install/autodetect
index eba31d3..2ae8db6 100644
--- a/install/autodetect
+++ b/install/autodetect
@@ -30,7 +30,7 @@ install ()
done
if [ -e /sbin/mdadm ]; then
- for raidmod in $(mdadm -E -s /dev/hd* /dev/sd* /dev/rd/* /dev/ida/* /dev/cciss/* /dev/ataraid/* \
+ for raidmod in $(/sbin/mdadm -E -s /dev/hd* /dev/sd* /dev/rd/* /dev/ida/* /dev/cciss/* /dev/ataraid/* \
| awk -Flevel= '{print $2}' | awk '{print $1}'); do
case "${raidmod}" in
raid4|raid5|raid6)
diff --git a/mkinitcpio b/mkinitcpio
index 841659b..f6de525 100644
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -32,6 +32,10 @@ PRESETDIR="mkinitcpio.d"
QUIET="y"
SHOW_AUTOMODS="n"
+# Add /{,usr}/sbin to path
+# works around undetected problems like in #8448
+PATH="${PATH}:/sbin:/usr/sbin"
+
APPNAME=$(basename "${0}")
usage ()
@@ -223,7 +227,7 @@ if [ "${HAS_MODULES}" == "y" ]; then
mkdir -p "/tmp/${dir}"
cp "${BASEDIR}${mod}" "/tmp/${dir}/"
done
- depmod -b /tmp ${KERNELVERSION}
+ /sbin/depmod -b /tmp ${KERNELVERSION}
add_file "/tmp/lib/modules/${KERNELVERSION}/modules.dep" "/lib/modules/${KERNELVERSION}/modules.dep"
add_file "/tmp/lib/modules/${KERNELVERSION}/modules.alias" "/lib/modules/${KERNELVERSION}/modules.alias"
add_file "/tmp/lib/modules/${KERNELVERSION}/modules.symbols" "/lib/modules/${KERNELVERSION}/modules.symbols"
@@ -232,7 +236,7 @@ fi
status=0
if [ -n "$GENIMG" ]; then
echo -n ":: Generating image '${GENIMG}'..."
- if ! gen_init_cpio ${FILELIST} | gzip -9 > "${GENIMG}"; then
+ if ! /sbin/gen_init_cpio ${FILELIST} | gzip -9 > "${GENIMG}"; then
echo "FAILED"
status=1
else