mmdebstrap/tests
Johannes Schauer Marin Rodrigues 009089ee8a
Mount a new instance of /dev/pts in the chroot
Before, we bind-mounted /dev/ptmx and /dev/pts from the host into the
chroot. This will make posix_openpt() fail with 'No such file or
directory'.  The ability to create pseudo terminals is important for apt
(which will throw a warning otherwise) or running script(1) or source
package testsuites like for src:util-linux. This functionality is
restored by mounting a new devpts instance to /dev/pts and making
/dev/ptmx a symlink to /dev/pts/ptmx. Mounting with ptmxmode=666 is
required such that also non-root users in unshare mode are able to
create pseudo terminals. See also:

https://www.kernel.org/doc/Documentation/filesystems/devpts.txt
https://salsa.debian.org/debian/schroot/-/merge_requests/2
https://bugs.debian.org/856877
https://bugs.debian.org/817236
2022-06-14 08:26:48 +02:00
..
aptopt rewrite coverage.sh 2022-05-28 17:49:05 +02:00
arm64-without-qemu-support tests/arm64-without-qemu-support: disable binfmt not by uninstalling but by writing to /proc/sys/fs/binfmt_misc/qemu-aarch64 2022-06-04 08:43:38 +02:00
as-debootstrap-unshare-wrapper rewrite coverage.sh 2022-05-28 17:49:05 +02:00
ascii-armored-keys rewrite coverage.sh 2022-05-28 17:49:05 +02:00
aspcud-apt-solver rewrite coverage.sh 2022-05-28 17:49:05 +02:00
auto-mode-without-unshare-capabilities rewrite coverage.sh 2022-05-28 17:49:05 +02:00
automatic-mirror-from-suite rewrite coverage.sh 2022-05-28 17:49:05 +02:00
check-against-debootstrap-dist print value of SOURCE_DATE_EPOCH when creating and comparing debootstrap chroot to find bug only occurring when running autopkgtest around midnight 2022-06-04 08:42:23 +02:00
check-for-bit-by-bit-identical-format-output rewrite coverage.sh 2022-05-28 17:49:05 +02:00
chroot-directory-not-accessible-by-apt-user rewrite coverage.sh 2022-05-28 17:49:05 +02:00
compare-output-with-pre-seeded-var-cache-apt-archives rewrite coverage.sh 2022-05-28 17:49:05 +02:00
copy-mirror rewrite coverage.sh 2022-05-28 17:49:05 +02:00
create-arm64-tarball rewrite coverage.sh 2022-05-28 17:49:05 +02:00
create-directory rewrite coverage.sh 2022-05-28 17:49:05 +02:00
create-directory-dry-run add forgotten test create-directory-dry-run 2022-06-13 14:00:44 +02:00
create-gzip-compressed-tarball rewrite coverage.sh 2022-05-28 17:49:05 +02:00
create-tarball-dry-run rewrite coverage.sh 2022-05-28 17:49:05 +02:00
create-tarball-with-tmp-mounted-nodev rewrite coverage.sh 2022-05-28 17:49:05 +02:00
custom-tmpdir tests/custom-tmpdir: try running mmdebstrap in a TMPDIR with special shell characters in its path 2022-06-04 08:30:53 +02:00
customize-hook rewrite coverage.sh 2022-05-28 17:49:05 +02:00
cwd-directory-not-accessible-by-unshared-user rewrite coverage.sh 2022-05-28 17:49:05 +02:00
deb822-1-2 rewrite coverage.sh 2022-05-28 17:49:05 +02:00
deb822-2-2 rewrite coverage.sh 2022-05-28 17:49:05 +02:00
debootstrap-no-op-options rewrite coverage.sh 2022-05-28 17:49:05 +02:00
debug rewrite coverage.sh 2022-05-28 17:49:05 +02:00
debug-output-on-fake-tty rewrite coverage.sh 2022-05-28 17:49:05 +02:00
dev-ptmx Mount a new instance of /dev/pts in the chroot 2022-06-14 08:26:48 +02:00
directory-ending-in-tar rewrite coverage.sh 2022-05-28 17:49:05 +02:00
dist-using-codename rewrite coverage.sh 2022-05-28 17:49:05 +02:00
dpkgopt rewrite coverage.sh 2022-05-28 17:49:05 +02:00
eatmydata-via-hook-dir rewrite coverage.sh 2022-05-28 17:49:05 +02:00
essential-hook rewrite coverage.sh 2022-05-28 17:49:05 +02:00
existing-directory-with-lost-found rewrite coverage.sh 2022-05-28 17:49:05 +02:00
existing-empty-directory rewrite coverage.sh 2022-05-28 17:49:05 +02:00
fail-installing-to-existing-file rewrite coverage.sh 2022-05-28 17:49:05 +02:00
fail-installing-to-non-empty-lost-found rewrite coverage.sh 2022-05-28 17:49:05 +02:00
fail-installing-to-non-empty-target-directory rewrite coverage.sh 2022-05-28 17:49:05 +02:00
fail-installing-to-root rewrite coverage.sh 2022-05-28 17:49:05 +02:00
fail-with-missing-lz4 rewrite coverage.sh 2022-05-28 17:49:05 +02:00
fail-with-path-with-quotes rewrite coverage.sh 2022-05-28 17:49:05 +02:00
fail-without-etc-subuid rewrite coverage.sh 2022-05-28 17:49:05 +02:00
fail-without-username-in-etc-subuid rewrite coverage.sh 2022-05-28 17:49:05 +02:00
failing-customize-hook rewrite coverage.sh 2022-05-28 17:49:05 +02:00
file-mirror rewrite coverage.sh 2022-05-28 17:49:05 +02:00
file-mirror-automount-hook file-mirror-automount hook now supports modes that cannot mount (like fakechroot) by copying the repo into the chroot 2022-05-29 09:31:12 +02:00
help rewrite coverage.sh 2022-05-28 17:49:05 +02:00
hook-directory rewrite coverage.sh 2022-05-28 17:49:05 +02:00
i386-which-can-be-executed-without-qemu rewrite coverage.sh 2022-05-28 17:49:05 +02:00
include rewrite coverage.sh 2022-05-28 17:49:05 +02:00
include-libmagic-mgc-arm64 rewrite coverage.sh 2022-05-28 17:49:05 +02:00
include-libmagic-mgc-arm64-with-multiple-arch-options rewrite coverage.sh 2022-05-28 17:49:05 +02:00
include-with-multiple-apt-sources rewrite coverage.sh 2022-05-28 17:49:05 +02:00
install-busybox-based-sub-essential-system rewrite coverage.sh 2022-05-28 17:49:05 +02:00
install-doc-debian rewrite coverage.sh 2022-05-28 17:49:05 +02:00
install-doc-debian-and-output-tarball rewrite coverage.sh 2022-05-28 17:49:05 +02:00
install-doc-debian-and-test-hooks rewrite coverage.sh 2022-05-28 17:49:05 +02:00
install-known-good-from-essential-yes rewrite coverage.sh 2022-05-28 17:49:05 +02:00
install-libmagic-mgc-on-arm64 rewrite coverage.sh 2022-05-28 17:49:05 +02:00
invalid-mirror rewrite coverage.sh 2022-05-28 17:49:05 +02:00
keyring rewrite coverage.sh 2022-05-28 17:49:05 +02:00
keyring-overwrites rewrite coverage.sh 2022-05-28 17:49:05 +02:00
logfile rewrite coverage.sh 2022-05-28 17:49:05 +02:00
man rewrite coverage.sh 2022-05-28 17:49:05 +02:00
merged-usr-via-setup-hook rewrite coverage.sh 2022-05-28 17:49:05 +02:00
mirror-is-deb rewrite coverage.sh 2022-05-28 17:49:05 +02:00
mirror-is-real-file rewrite coverage.sh 2022-05-28 17:49:05 +02:00
mirror-is-stdin rewrite coverage.sh 2022-05-28 17:49:05 +02:00
missing-dev-sys-proc-inside-the-chroot rewrite coverage.sh 2022-05-28 17:49:05 +02:00
missing-device-nodes-outside-the-chroot rewrite coverage.sh 2022-05-28 17:49:05 +02:00
mount-is-missing rewrite coverage.sh 2022-05-28 17:49:05 +02:00
multiple-include rewrite coverage.sh 2022-05-28 17:49:05 +02:00
no-sbin-in-path Only set up FAKECHROOT_CMD_SUBST for paths in PATH containing the original binary 2022-05-29 08:11:43 +02:00
not-having-to-install-apt-in-include-because-a-hook-did-it-before rewrite coverage.sh 2022-05-28 17:49:05 +02:00
pass-distribution-but-implicitly-write-to-stdout rewrite coverage.sh 2022-05-28 17:49:05 +02:00
preserve-mode-of-etc-resolv-conf-and-etc-hostname rewrite coverage.sh 2022-05-28 17:49:05 +02:00
progress-bars-on-fake-tty rewrite coverage.sh 2022-05-28 17:49:05 +02:00
quiet rewrite coverage.sh 2022-05-28 17:49:05 +02:00
read-from-stdin-write-to-stdout rewrite coverage.sh 2022-05-28 17:49:05 +02:00
remove-start-stop-daemon-and-policy-rc-d-in-hook rewrite coverage.sh 2022-05-28 17:49:05 +02:00
root-mode-inside-chroot rewrite coverage.sh 2022-05-28 17:49:05 +02:00
root-mode-inside-unshare-chroot rewrite coverage.sh 2022-05-28 17:49:05 +02:00
root-without-cap-sys-admin rewrite coverage.sh 2022-05-28 17:49:05 +02:00
sigint-during-customize-hook rewrite coverage.sh 2022-05-28 17:49:05 +02:00
signed-by-with-host-keys rewrite coverage.sh 2022-05-28 17:49:05 +02:00
signed-by-without-host-keys rewrite coverage.sh 2022-05-28 17:49:05 +02:00
special-hooks-using-helpers rewrite coverage.sh 2022-05-28 17:49:05 +02:00
special-hooks-using-helpers-and-env-vars rewrite coverage.sh 2022-05-28 17:49:05 +02:00
special-hooks-with-mode-mode rewrite coverage.sh 2022-05-28 17:49:05 +02:00
stable-default-mirror rewrite coverage.sh 2022-05-28 17:49:05 +02:00
supply-components-manually rewrite coverage.sh 2022-05-28 17:49:05 +02:00
taridshift-utility rewrite coverage.sh 2022-05-28 17:49:05 +02:00
unpack-doc-debian rewrite coverage.sh 2022-05-28 17:49:05 +02:00
unshare-as-root-user rewrite coverage.sh 2022-05-28 17:49:05 +02:00
unshare-as-root-user-inside-chroot rewrite coverage.sh 2022-05-28 17:49:05 +02:00
verbose rewrite coverage.sh 2022-05-28 17:49:05 +02:00
version rewrite coverage.sh 2022-05-28 17:49:05 +02:00
without-etc-resolv-conf-and-etc-hostname rewrite coverage.sh 2022-05-28 17:49:05 +02:00
xz-compressed-tarball rewrite coverage.sh 2022-05-28 17:49:05 +02:00