2020-08-15 22:50:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-05-24 02:14:08 +00:00
|
|
|
set -eu
|
|
|
|
|
|
|
|
if [ "$MMDEBSTRAP_VERBOSITY" -ge 3 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2020-08-15 22:50:46 +00:00
|
|
|
|
|
|
|
rootdir="$1"
|
|
|
|
|
2021-10-08 18:46:55 +00:00
|
|
|
# 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
|