Commit Graph

111 Commits (main)

Author SHA1 Message Date
Johannes Schauer Marin Rodrigues 1e68ffd2c4
tests: changelog.Debian.$foreign_arch.gz files are not always present 3 weeks ago
Johannes Schauer Marin Rodrigues 726fc38d1d
attempt diagnosing skip-tar-in-mknod failure 'file changed as we read it' using auditd 3 weeks ago
Johannes Schauer Marin Rodrigues 4bcd6fa015
rename install-libmagic-mgc-on-arm64 test and allow running it on both amd64 and arm64 3 months ago
Johannes Schauer Marin Rodrigues 79ef2e3437
tests/remove-start-stop-daemon-and-policy-rc-d-in-hook: remove /usr/sbin/start-stop-daemon and not /sbin/start-stop-daemon 3 months ago
Johannes Schauer Marin Rodrigues 366d2ffbec
rename create-arm64-tarball test and allow running it on both amd64 and arm64 3 months ago
Johannes Schauer Marin Rodrigues 134fc15634
rename include-libmagic-mgc-arm64 tests and allow running them on both amd64 and arm64 3 months ago
Johannes Schauer Marin Rodrigues 1c669e8f86
tests/chrootless-fakeroot: exclude /var/log/journal and /etc/credstore* from tarballs instead of trying to fix them up 3 months ago
Johannes Schauer Marin Rodrigues 014a9c30a5
tests/check-against-debootstrap-dist: systemd 255 dropped split-/usr support 3 months ago
Johannes Schauer Marin Rodrigues 90fe7941bb
tests/check-against-debootstrap-dist: debootstrap installs prio:required packages in oldstable and stable for the buildd profile 3 months ago
Johannes Schauer Marin Rodrigues 428ee78121
disallow running chrootless as root without fakeroot unless --skip=check/chrootless is used 3 months ago
Johannes Schauer Marin Rodrigues ae6dcc001d
tests/install-busybox-based-sub-essential-system: busybox 1:1.36.1-6 moved to /usr 3 months ago
Johannes Schauer Marin Rodrigues 69954515e7
tests/chrootless-fakeroot: also fix permissions and extended attributes for /etc/credstore 3 months ago
Johannes Schauer Marin Rodrigues fd33bd2a40 set DPkg::Chroot-Directory in APT_CONFIG
This is so that users calling apt-get install from a hook only need to
have APT_CONFIG=$MMDEBSTRAP_APT_CONFIG set and do not also have to pass
-oDPkg::Chroot-Directory="$1".

This breaks users running apt-get with
DPkg::Options::=--force-script-chrootless or with Dpkg::Pre-Install-Pkgs
from within a hook with APT_CONFIG=$MMDEBSTRAP_APT_CONFIG.

In those situations, DPkg::Chroot-Directory has to be set to the empty
string explicitly with -o to overwrite the APT_CONFIG setting.

Thanks: Helmut Grohne
6 months ago
Johannes Schauer Marin Rodrigues cb500ef6ba
add --skip=tar-in/mknod,copy-in/mknod,sync-in/mknod 6 months ago
Johannes Schauer Marin Rodrigues 84c53fc120
hook-helper: repurpose third arg for skip options now that qemu-user info does not need to be propagated anymore (was only needed for proot) 6 months ago
Johannes Schauer Marin Rodrigues 27d1bad2a5
since debootstrap 1.0.133, the buildd variant only installs apt and not priority:required anymore 6 months ago
Johannes Schauer Marin Rodrigues bf41b91e6f
Properly implement --skip=output/dev and add --skip=output/mknod
- the first implementation of --skip=output/dev was broken in root mode
 - add tests
 - add documentation
7 months ago
Johannes Schauer Marin Rodrigues c23727e136
export container=mmdebstrap-unshare environment variable in unshare-mode hooks 7 months ago
Johannes Schauer Marin Rodrigues 44cf2f94a6
tests/ascii-armored-keys: convert key to armored using gpg instead of sed 8 months ago
Johannes Schauer Marin Rodrigues 5a9123aa11
testsuite changes for bookworm release 10 months ago
Johannes Schauer Marin Rodrigues 14f13c6309
tests/{eatmydata-via-hook-dir,jessie-or-older}: dash 0.5.12-3 dropped diversions 11 months ago
Johannes Schauer Marin Rodrigues e27a8d3472
tests: doc-debian 11.0 changed the doc-base paths 12 months ago
Johannes Schauer Marin Rodrigues 71a9a2e7a9
tests/include-deb-file: run in all modes 1 year ago
Johannes Schauer Marin Rodrigues 846662276f
tests/multiple-include: be more liberal with packages adding or dropping maintainer scripts 1 year ago
Johannes Schauer Marin Rodrigues 9a19801095
debian-archive-keyring now puts *.asc keys into /etc/apt/trusted.gpg.d 1 year ago
Johannes Schauer Marin Rodrigues 055e1719b9
try unsharing before automatically choosing unshare mode 1 year ago
Johannes Schauer Marin Rodrigues 901d017099
tests: do not run debug and verbose tests with variant standards for arches affected by #1031276 1 year ago
Johannes Schauer Marin Rodrigues 034698f8d3
tests/check-for-bit-by-bit-identical-format-output: use the default user check 1 year ago
Johannes Schauer Marin Rodrigues a184cc003c
tests: run verbose and debug tests with --variant=standard for maximum output 1 year ago
Johannes Schauer Marin Rodrigues dd774b4f20
tests: skip debootstrap tests variant - on oldstable because of #917773 1 year ago
Johannes Schauer Marin Rodrigues db2be70f88
tests: split out creation of mmdebstrap chroot into its own test to avoid running the same thing multiple times and speed up tests 1 year ago
Johannes Schauer Marin Rodrigues 5885291213
Use an caching apt proxy instead of copying /var/cache/apt/archives/*.deb
- only download Release files once and not by apt as well as with curl
   and thus avoid a mirror push happening between both downloads
 - no heuristic needed to place the file in their correct mirror
   location
 - no manual checksum checking
 - only throttle download speed when actually downloading and not when
   retrieving files from the cache
 - no translation of filenames between how the epoch colon is stored in
   files in /var/cache/apt/archives versus how it is stored in files on
   the mirrors
 - no special handling of stable update and security mirrors
 - implemented in Python instead of shell and thus an order of magnitude
   faster
1 year ago
Johannes Schauer Marin Rodrigues b90f1196e5
tests/root-mode-inside-chroot: run test script with -x 1 year ago
Johannes Schauer Marin Rodrigues 2f337767ea
tests/multiple-include: tzdata is producing /etc/timezone again 1 year ago
Johannes Schauer Marin Rodrigues 55f376d04a
tests: more cleanup traps 1 year ago
Johannes Schauer Marin Rodrigues 02769190ad
tests/as-debootstrap-unshare-wrapper: bind-mount /proc to work around #1031222 1 year ago
Johannes Schauer Marin Rodrigues b3810b0fcd
tests/as-debootstrap-unshare-wrapper: run in variants minbase and important 1 year ago
Johannes Schauer Marin Rodrigues 5e07567d5a
move running debootstrap from make_mirror.sh to a test case 1 year ago
Johannes Schauer Marin Rodrigues b18849caac
Assume that we can always run unshare
With mount --rbind we can bind-mount /proc in a privileged docker
container as it is used by salsaci.
1 year ago
Johannes Schauer Marin Rodrigues b474150f27
tests: fall back to diffoscope if cmp failed 1 year ago
Johannes Schauer Marin Rodrigues 4c64adf6ee
add tests/auto-mode-as-normal-user 1 year ago
Johannes Schauer Marin Rodrigues b648db0afd
tests: tzdata dropped /etc/timezone 1 year ago
Johannes Schauer Marin Rodrigues d9e6d62328
tests: redirect all id output to /dev/null 1 year ago
Johannes Schauer Marin Rodrigues a2d5573749
tests: drop qemu requirements for tests that only use it to create a user by defaulting to SUDO_USER 1 year ago
Johannes Schauer Marin Rodrigues 98aef0d023
tests: do not run sysctl -w kernel.unprivileged_userns_clone=1 as its the default value since linux 5.10.1 (Dec 2020) 1 year ago
Johannes Schauer Marin Rodrigues 090ce862c7
tests: replace adduser with useradd 1 year ago
Johannes Schauer Marin Rodrigues f737cce3f1
Support creating a fakechroot with merged-/usr on an unmerged-/usr system
Thanks: Helmut Grohne for finding this issue and help interating this
1 year ago
Johannes Schauer Marin Rodrigues 6d220e9a8d
run script with -e to catch exit code 1 year ago
Johannes Schauer Marin Rodrigues c738e96752
allow empty sources.list entries 1 year ago
Johannes Schauer Marin Rodrigues 860a9048d5
make info message lowercase like the rest 1 year ago