From 8fe4fe3eda94692c3f5080ab543c673658d07ade Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Fri, 8 Oct 2021 20:46:55 +0200 Subject: [PATCH] hooks/busybox/extract00.sh: run busybox from an absolute path --- hooks/busybox/extract00.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hooks/busybox/extract00.sh b/hooks/busybox/extract00.sh index d7c0e03..8c16e9d 100755 --- a/hooks/busybox/extract00.sh +++ b/hooks/busybox/extract00.sh @@ -4,4 +4,7 @@ set -exu rootdir="$1" -chroot "$rootdir" busybox --install -s +# Run busybox using an absolute path so that this script also works in case +# /proc is not mounted. Busybox uses /proc/self/exe to figure out the path +# to its executable. +chroot "$rootdir" /bin/busybox --install -s