From a3462e896b90ee151eab79a3447377ca3ab49349 Mon Sep 17 00:00:00 2001 From: Alex Gaines Date: Tue, 18 Dec 2018 16:41:51 -0500 Subject: [PATCH] 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. --- alpine-make-vm-image | 3 +++ 1 file changed, 3 insertions(+) diff --git a/alpine-make-vm-image b/alpine-make-vm-image index 34af4b1..bcc088f 100755 --- a/alpine-make-vm-image +++ b/alpine-make-vm-image @@ -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"