Johannes Schauer Marin Rodrigues
aae47da9ab
coverage.sh: fix test that was wrongly installing outside the chroot and download-only
3 years ago
Johannes Schauer Marin Rodrigues
3e488dd1dd
use apt from the outside by setting DPkg::Chroot-Directory
3 years ago
Johannes Schauer Marin Rodrigues
c63ad87310
changes for release of Debian 11 Buster
3 years ago
Johannes Schauer Marin Rodrigues
4cd69d444a
coverage.sh: let cover output to stderr to prevent wrong message output order
4 years ago
Johannes Schauer Marin Rodrigues
4cd547286c
coverage.sh: sysvinit-utils also works with chrootless
4 years ago
Johannes Schauer Marin Rodrigues
65070e23da
coverage.sh: add more docs for chrootless essential test
4 years ago
Johannes Schauer Marin Rodrigues
5a3d1ab5c4
Rework /dev, /sys, /proc mounting
...
- assume all entries in @devfiles to be in /dev
- allow for /dev, /sys and /proc not to exist in the target and print warning
- allow for /dev entries as well as /sys and /proc not to exist on the outside
- simplify umount by storing special options in @umountopts
- remove superfluous checks for root and unshare mode
- make sure /dev entries are less than 100 chars in size for tar
4 years ago
Johannes Schauer Marin Rodrigues
5fd1ca62d9
coverage.sh: don't attempt deleting non-existant directory
4 years ago
Johannes Schauer Marin Rodrigues
067daaf4c2
also run unshare with --propagation unchanged in root mode
4 years ago
Johannes Schauer Marin Rodrigues
276363c2a1
coverage.sh: remove chroot directories
4 years ago
Johannes Schauer Marin Rodrigues
0009e62b3e
coverage.sh: do not run cap_sys_admin test under lxc
4 years ago
Johannes Schauer Marin Rodrigues
73cd7cd2e8
run unshare --mount with --propagation unchanged to prevent 'cannot change root filesystem propagation' when running mmdebstrap from inside a chroot
4 years ago
Johannes Schauer Marin Rodrigues
39167dbc30
expose hook name to hooks via MMDEBSTRAP_HOOK environment variable
4 years ago
Johannes Schauer Marin Rodrigues
7a43ff89dc
improve dpkg and apt version parsing
4 years ago
Johannes Schauer Marin Rodrigues
4e658549f0
coverage.sh: clean up some additional files
4 years ago
Johannes 'josch' Schauer
7bd733fb8b
In root mode, check whether it's possible to mount
...
- even if the user is root, they might not have permission to mount
- check for CAP_SYS_ADMIN and unshare --mount before proceeding
- allow one to disable the check with --skip=check/canmount
- this is useful in container environments like docker
4 years ago
Johannes 'josch' Schauer
4693034138
allow unshare as root user
...
- this is useful when you are already root and want the benefits of
unsharing the mount namespace to prevent messing up your system
- if the unshare mode is used as root, the user namespace is not unshared
anymore and newuidmap, setuid and friends are not called anymore
- if the unshare mode is used as non-root test if the user namespace can be
unshared, otherwise test if the mount namespace can be unshared
4 years ago
Johannes 'josch' Schauer
0f6741d01a
coverage.sh: allow to run on stable
4 years ago
Johannes 'josch' Schauer
ac21074243
set MMDEBSTRAP_APT_CONFIG, MMDEBSTRAP_MODE and MMDEBSTRAP_HOOKSOCK for hook scripts
4 years ago
Johannes 'josch' Schauer
2d03a81997
coverage.sh: reenabling tests because bugs got fixed
...
- systemd didn't get fixed but somehow the order matches again (bug #963788 )
- python is installable again (bug #968217 )
- apt immediate configure was not fixed but src:glibc changed to not
trigger the bug anymore (bugs #973305 , #973325 and #972552 )
4 years ago
Johannes 'josch' Schauer
0dc8321094
coverage.sh: the output of getcap differs depending on the version
4 years ago
Johannes 'josch' Schauer
e9e5f15f61
coverage.sh: remove tarball earlier to free some space
4 years ago
Johannes 'josch' Schauer
2ccd025a25
coverage.sh: don't execute test modifying /etc/hosts without qemu
4 years ago
Johannes 'josch' Schauer
2c232e0661
don't ignore packages added via --include if multiple apt indices are used
4 years ago
Johannes 'josch' Schauer
3a2b3c142a
coverage.sh: remove stray 'exit 0'
4 years ago
Johannes 'josch' Schauer
9e56353661
coverage.sh: assemble ELF header according to bits and endian
4 years ago
Johannes 'josch' Schauer
077d8cdd9a
coverage.sh,make_mirror.sh: add i386 support
4 years ago
Johannes 'josch' Schauer
165cc82f97
preserve permissions of /etc/resolv.conf and /etc/hostname and resolve symlinks as debootstrap does it
4 years ago
Johannes 'josch' Schauer
a7c557644e
coverage.sh: check for unshare and proot
4 years ago
Johannes 'josch' Schauer
cf695c4a21
coverage.sh: fix total number ant print_header position
4 years ago
Johannes 'josch' Schauer
ac48ff6672
coverage.sh: also test variant=custom with dropping archives into /var/cache/apt/archives
4 years ago
Johannes 'josch' Schauer
beb0b8c177
name solver mmdebstrap-dump-solution in official apt path
4 years ago
Johannes 'josch' Schauer
904b79be06
coverage.sh: fix total number of tests
4 years ago
Johannes 'josch' Schauer
c760661de3
coverage.sh: test using /mnt requires qemu
4 years ago
Johannes 'josch' Schauer
1e7e002eb1
print explicit info message about installing essential packages
4 years ago
Johannes 'josch' Schauer
2c5d902822
coverage.sh: the proot+pam problem is no more since pam 1.3.1-1
4 years ago
Johannes 'josch' Schauer
d96d0e0e16
coverage.sh: if a test cannot be executed mark it as skipped instead of ignoring it
4 years ago
Johannes 'josch' Schauer
df04cf91f2
coverage.sh: only copy or test files that actually exist
4 years ago
Johannes 'josch' Schauer
3731393c7a
coverage.sh: fix HOSTARCH -> ONLINE
4 years ago
Johannes 'josch' Schauer
692f687928
coverage.sh: skip tests affected by #973305 and #973325
4 years ago
Johannes 'josch' Schauer
0b4f8ca7db
replace armhf with arm64 in the testsuite because builds of gcc on armhf can take more than 2 days, resulting in a long m-a:same version skew
4 years ago
Johannes 'josch' Schauer
3babdb04cb
coverage.sh: /etc/apt/apt.conf.d/01autoremove-kernels is not anymore always created
4 years ago
Johannes 'josch' Schauer
0c990abc48
coverage.sh: only consider non-POD parts for maximum line length check
4 years ago
Johannes 'josch' Schauer
21a26b5dac
pass verbosity to hook-listener
4 years ago
Johannes 'josch' Schauer
bf87e83bdb
make it possible to seed /var/cache/apt/archives with deb packages
4 years ago
Johannes 'josch' Schauer
e4a3d2b2c5
coverage.sh: two tests need qemu isolation
4 years ago
Johannes 'josch' Schauer
caa80ccd95
coverage.sh: send adios to hook-listener
4 years ago
Johannes 'josch' Schauer
d528f6316c
coverage.sh: store temporary files in /tmp and not in shared
4 years ago
Johannes 'josch' Schauer
33b1ed5993
coverage.sh: test ubuntu focal
4 years ago
Johannes 'josch' Schauer
7c752fa8a0
print elapsed time after successful run
4 years ago