summaryrefslogtreecommitdiffstats
path: root/tests/missing-dev-sys-proc-inside-the-chroot
diff options
context:
space:
mode:
Diffstat (limited to 'tests/missing-dev-sys-proc-inside-the-chroot')
-rw-r--r--tests/missing-dev-sys-proc-inside-the-chroot4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/missing-dev-sys-proc-inside-the-chroot b/tests/missing-dev-sys-proc-inside-the-chroot
index 9c9b1c0..935ff31 100644
--- a/tests/missing-dev-sys-proc-inside-the-chroot
+++ b/tests/missing-dev-sys-proc-inside-the-chroot
@@ -17,8 +17,8 @@ if [ "$(id -u)" -eq 0 ] && [ "{{ MODE }}" != "root" ] && [ "{{ MODE }}" != "auto
prefix="runuser -u ${SUDO_USER:-user} --"
fi
-# creating /sbin manually because of #1071078
+# do not install base-files, so that /proc, /sys and /dev are missing
$prefix {{ CMD }} --mode={{ MODE }} --variant={{ VARIANT }} \
- --setup-hook='mkdir "$1/sbin"' \
+ --setup-hook='for dir in bin lib lib32 lib64 libo32 libx32 sbin; do ln -s "usr/$dir" "$1/$dir"; done' \
--include=dpkg,dash,diffutils,coreutils,libc-bin,sed \
{{ DIST }} /dev/null {{ MIRROR }}