tests/missing-dev-sys-proc-inside-the-chroot: work around for bug #1071078

This commit is contained in:
Johannes Schauer Marin Rodrigues 2024-05-14 07:31:27 +02:00
parent 409686048b
commit 4ad8245a14
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -17,4 +17,8 @@ if [ "$(id -u)" -eq 0 ] && [ "{{ MODE }}" != "root" ] && [ "{{ MODE }}" != "auto
prefix="runuser -u ${SUDO_USER:-user} --"
fi
$prefix {{ CMD }} --mode={{ MODE }} --variant={{ VARIANT }} --include=dpkg,dash,diffutils,coreutils,libc-bin,sed {{ DIST }} /dev/null {{ MIRROR }}
# creating /sbin manually because of #1071078
$prefix {{ CMD }} --mode={{ MODE }} --variant={{ VARIANT }} \
--setup-hook='mkdir "$1/sbin"' \
--include=dpkg,dash,diffutils,coreutils,libc-bin,sed \
{{ DIST }} /dev/null {{ MIRROR }}