From 99e0b460921157855c7ec1cbea2b2c829767d018 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Thu, 18 Jun 2020 18:40:27 -0600 Subject: [PATCH] Fix building on Debian Debian does not export /usr/bin in PATH for users like every other distro so builds fail to find mkfs and parted. --- scripts/build.sh | 3 +++ scripts/pxestick.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index 1ad9fbf..8abb0a8 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -2,6 +2,9 @@ set -e +# TODO: Move this to build scripts that require it on Debian +PATH="$PATH:/usr/sbin" + if [ -z "$1" ] then echo "$0 " >&2 diff --git a/scripts/pxestick.sh b/scripts/pxestick.sh index 4a22786..95b1ed6 100755 --- a/scripts/pxestick.sh +++ b/scripts/pxestick.sh @@ -2,6 +2,8 @@ set -e +PATH="$PATH:/usr/sbin" + rm -rf build/pxestick mkdir -p build/pxestick