]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Include /tools/sbin in search path
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Feb 2022 16:47:39 +0000 (16:47 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 5 Feb 2022 12:12:32 +0000 (12:12 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index d33fdf2bc5f9eafa4354a5159c90598f64b3876e..939c2e44d21f6a30788ad7f279ba31e030992b78 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -554,7 +554,7 @@ enterchroot() {
        # Install QEMU helper, if needed
        qemu_install_helper
 
-       local PATH="${TOOLS_DIR}/ccache/bin:/bin:/usr/bin:/sbin:/usr/sbin:${TOOLS_DIR}/bin"
+       local PATH="${TOOLS_DIR}/ccache/bin:/bin:/usr/bin:/sbin:/usr/sbin:${TOOLS_DIR}/sbin:${TOOLS_DIR}/bin"
 
        # Prepend any custom changes to PATH
        if [ -n "${CUSTOM_PATH}" ]; then
@@ -664,7 +664,7 @@ lfsmake1() {
        [ $? == 1 ] && return 0
 
        cd $BASEDIR/lfs && env -i \
-               PATH="${TOOLS_DIR}/ccache/bin:${TOOLS_DIR}/bin:$PATH" \
+               PATH="${TOOLS_DIR}/ccache/bin:${TOOLS_DIR}/sbin:${TOOLS_DIR}/bin:${PATH}" \
                CCACHE_DIR="${CCACHE_DIR}"/${BUILD_ARCH}/${TOOLCHAINVER} \
                CCACHE_TEMPDIR="${CCACHE_TEMPDIR}" \
                CCACHE_COMPILERCHECK="${CCACHE_COMPILERCHECK}" \