Ensure that /usr/sbin /usr/bin /sbin /bin is in PATH

Arch Linux does not have /bin or /sbin in PATH by default, so the script
fails to execute extlinux, update-extlinux, mkfs.* etc.
This commit is contained in:
Alex Gaines 2018-12-18 16:41:51 -05:00 committed by Jakub Jirutka
parent ea6dcfe635
commit a3462e896b

View file

@ -84,6 +84,9 @@
#---help---
set -eu
# Some distros (e.g. Arch Linux) does not have /bin or /sbin in PATH.
PATH="$PATH:/usr/sbin:/usr/bin:/sbin:/bin"
readonly PROGNAME='alpine-make-vm-image'
readonly VERSION='0.4.0'
readonly VIRTUAL_PKG=".make-$PROGNAME"