Commit Graph

779 Commits (d82afec5debe0c12ed9ab82e2db30ae91ddc8dca)
 

Author SHA1 Message Date
Johannes Schauer Marin Rodrigues aaa7c14275
hooks/setup00-merged-usr.sh: add rationale 3 years ago
Johannes Schauer Marin Rodrigues 4e658549f0
coverage.sh: clean up some additional files 3 years ago
Johannes 'josch' Schauer d9633d05fe
release 0.7.4 3 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
3 years ago
Johannes 'josch' Schauer 205f5c2692
document how to use mmdebstrap to create a docker chroot 3 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
3 years ago
Johannes 'josch' Schauer 0f6741d01a
coverage.sh: allow to run on stable 3 years ago
Johannes 'josch' Schauer ea6bbc1d9c
#898446 got closed and the default of kernel.unprivileged_userns_clone changed to 1 3 years ago
Johannes 'josch' Schauer 62bcf3261e
do not run an additional env command inside the chroot 3 years ago
Johannes 'josch' Schauer 7ff3f53fb9
apt 2.1.16 fixed immediate configure 3 years ago
Johannes 'josch' Schauer ac21074243
set MMDEBSTRAP_APT_CONFIG, MMDEBSTRAP_MODE and MMDEBSTRAP_HOOKSOCK for hook scripts 3 years ago
Josh Triplett 5a7dbc10c7
Optimize mmtarfilter to handle many path exclusions
mmtarfilter uses fnmatch to handle path exclusions and inclusions.
Python's fnmatch handles shell patterns by translating them to regular
expressions, with a 256-entry LRU cache. With more than 256 path
exclusions or inclusions, this LRU cache no longer works, and every
invocation of fnmatch on every file in every package will re-translate
and re-compile a regular expression, resulting in much worse
performance.

Translate all the shell patterns to regular expressions once. For an
mmdebstrap invocation with around 500 path filters, this speeds up
mmdebstrap by more than a minute.
3 years ago
Johannes 'josch' Schauer 9484107392
set PATH if it's unset or empty 3 years ago
Johannes 'josch' Schauer 8c42daad92
README.md: update benchmark numbers with new debootstrap 3 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)
3 years ago
Johannes 'josch' Schauer 0dc8321094
coverage.sh: the output of getcap differs depending on the version 3 years ago
Johannes 'josch' Schauer e9e5f15f61
coverage.sh: remove tarball earlier to free some space 3 years ago
Johannes 'josch' Schauer 0b2a0c5a55
release 0.7.3 3 years ago
Johannes 'josch' Schauer 43ca8a5211
it is wrong to match the suite for the package set selection if more than one apt index is given (because the suite name might be equal) instead check whether there is more than zero matching and more than zero not-matching suites 3 years ago
Johannes 'josch' Schauer 2ccd025a25
coverage.sh: don't execute test modifying /etc/hosts without qemu 3 years ago
Johannes 'josch' Schauer 7c15185dfd
work around debootstrap merge_request/48 by setting link_dir 3 years ago
Johannes 'josch' Schauer 2c232e0661
don't ignore packages added via --include if multiple apt indices are used 3 years ago
Johannes 'josch' Schauer 3a2b3c142a
coverage.sh: remove stray 'exit 0' 3 years ago
Johannes 'josch' Schauer 9e56353661
coverage.sh: assemble ELF header according to bits and endian 3 years ago
Johannes 'josch' Schauer 077d8cdd9a
coverage.sh,make_mirror.sh: add i386 support 3 years ago
Johannes 'josch' Schauer 85328c5c7e
mmdebstrap: check for defined-ness before integer comparison 3 years ago
Johannes 'josch' Schauer 165cc82f97
preserve permissions of /etc/resolv.conf and /etc/hostname and resolve symlinks as debootstrap does it 3 years ago
Johannes 'josch' Schauer a7c557644e
coverage.sh: check for unshare and proot 3 years ago
Johannes 'josch' Schauer cf695c4a21
coverage.sh: fix total number ant print_header position 3 years ago
Johannes 'josch' Schauer ac48ff6672
coverage.sh: also test variant=custom with dropping archives into /var/cache/apt/archives 3 years ago
Johannes 'josch' Schauer beb0b8c177
name solver mmdebstrap-dump-solution in official apt path 3 years ago
Johannes 'josch' Schauer 904b79be06
coverage.sh: fix total number of tests 3 years ago
Johannes 'josch' Schauer c760661de3
coverage.sh: test using /mnt requires qemu 3 years ago
Johannes 'josch' Schauer f76bcb5750
release 0.7.2 3 years ago
Johannes 'josch' Schauer 732fde54f8
documentation improvements, add OPERATION section 3 years ago
Johannes 'josch' Schauer da449be3fe
fix missing I in front of <> 3 years ago
Johannes 'josch' Schauer 2e19a8bda4
remove nonsense code comment 3 years ago
Johannes 'josch' Schauer 96f45ec2e7
info messages start with lower case character 3 years ago
Johannes 'josch' Schauer b7e257871d
use Debian::DistroInfo if available 3 years ago
Johannes 'josch' Schauer b2ea7b230f
remove no-op if statement 3 years ago
Johannes 'josch' Schauer 1e7e002eb1
print explicit info message about installing essential packages 3 years ago
Johannes 'josch' Schauer 2c5d902822
coverage.sh: the proot+pam problem is no more since pam 1.3.1-1 3 years ago
Johannes 'josch' Schauer d96d0e0e16
coverage.sh: if a test cannot be executed mark it as skipped instead of ignoring it 3 years ago
Johannes 'josch' Schauer 529e8076c4
make_mirror.sh: allow setting qemu disk image size with DISK_SIZE 3 years ago
Johannes 'josch' Schauer df04cf91f2
coverage.sh: only copy or test files that actually exist 3 years ago
Johannes 'josch' Schauer 0b27660468
make_mirror.sh: install mmdebstrap if ./mmdebstrap doesn't exist 3 years ago
Johannes 'josch' Schauer 2df8581bf9
make_mirror.sh: use CMD instead of ./mmdebstrap 3 years ago
Johannes 'josch' Schauer c51c69ca13
tarfilter/taridshift: use argparse 3 years ago
Johannes 'josch' Schauer 3731393c7a
coverage.sh: fix HOSTARCH -> ONLINE 3 years ago
Johannes 'josch' Schauer d947f765df
run_qemu.sh: add 20m timeout and print qemu log on failure 3 years ago