summaryrefslogtreecommitdiffstats
path: root/mkinitcpio
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2007-10-31 09:41:10 +0100
committerThomas Bächler <thomas@archlinux.org>2007-10-31 09:41:10 +0100
commit3fce4e1e1c8aa3c3d53836f89cf5c6253796f5e6 (patch)
tree1fc1d34f0080b640241736b383f5ccae93fa2f0e /mkinitcpio
parent8a47fa9512eb355e8f7cbe4b4e7d28373e706a6c (diff)
downloadmkinitcpio-3fce4e1e1c8aa3c3d53836f89cf5c6253796f5e6.tar.gz
mkinitcpio-3fce4e1e1c8aa3c3d53836f89cf5c6253796f5e6.tar.xz
Fix problems with /sbin and /usr/sbin not being in the path,
fixes Archlinux #8448
Diffstat (limited to 'mkinitcpio')
-rw-r--r--mkinitcpio8
1 files changed, 6 insertions, 2 deletions
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