summaryrefslogtreecommitdiffstats
path: root/hooks/busybox/extract00.sh
blob: 7d9b6ec962c508de60241f730bc0b0e64d39b4dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -eu

if [ "${MMDEBSTRAP_VERBOSITY:-1}" -ge 3 ]; then
	set -x
fi

rootdir="$1"

# 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