Commit Graph

359 Commits (f976dabb51f1f33b7cc9218c0c6381e607118e33)

Author SHA1 Message Date
Johannes Schauer Marin Rodrigues 39167dbc30
expose hook name to hooks via MMDEBSTRAP_HOOK environment variable 3 years ago
Johannes Schauer Marin Rodrigues 8a4f4d90ab
remove example showing mmdebstrap as debootstrap replacement for sbuild-createchroot as it doesn't work in unshare mode 3 years ago
Johannes Schauer Marin Rodrigues e1e0df7799
skip emulation check for extract variant 3 years ago
Johannes Schauer Marin Rodrigues c740b01dc8
unset TMPDIR in hooks because there is no value that works inside as well as outside the chroot 3 years ago
Johannes Schauer Marin Rodrigues 0595c5c220
add new suite name trixie 3 years ago
Johannes Schauer Marin Rodrigues 7a43ff89dc
improve dpkg and apt version parsing 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 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
Johannes 'josch' Schauer 9484107392
set PATH if it's unset or empty 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 0b2a0c5a55
release 0.7.3 4 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 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 85328c5c7e
mmdebstrap: check for defined-ness before integer comparison 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 beb0b8c177
name solver mmdebstrap-dump-solution in official apt path 4 years ago
Johannes 'josch' Schauer f76bcb5750
release 0.7.2 4 years ago
Johannes 'josch' Schauer 732fde54f8
documentation improvements, add OPERATION section 4 years ago
Johannes 'josch' Schauer da449be3fe
fix missing I in front of <> 4 years ago
Johannes 'josch' Schauer 2e19a8bda4
remove nonsense code comment 4 years ago
Johannes 'josch' Schauer 96f45ec2e7
info messages start with lower case character 4 years ago
Johannes 'josch' Schauer b7e257871d
use Debian::DistroInfo if available 4 years ago
Johannes 'josch' Schauer b2ea7b230f
remove no-op if statement 4 years ago
Johannes 'josch' Schauer 1e7e002eb1
print explicit info message about installing essential packages 4 years ago
Johannes 'josch' Schauer ad56754a2a
pkgs_to_install might contain duplicates when multiple suites are used -- avoid that by using a hash instead of an array 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 534798dbd2
add example for how to use a cache directory 4 years ago
Johannes 'josch' Schauer 12b26a8817
use /usr/share/distro-info/debian.csv to figure out the security mirror for bullseye and beyond 4 years ago
Johannes 'josch' Schauer 9d32dee3f5
if a suite name was specified, use the matching apt index to figure out the package set to install 4 years ago
Johannes 'josch' Schauer 21a26b5dac
pass verbosity to hook-listener 4 years ago
Johannes 'josch' Schauer e71487af5e
improve hook-helper and hook-listener debug output 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 50d8d5edae
check whether dpkg, apt and others are installed (closes: #18) 4 years ago
Johannes 'josch' Schauer 0a985948cf
create temporary test ext2 image in TMPDIR and not in CWD 4 years ago
Johannes 'josch' Schauer 1000a033e8
release 0.7.1 4 years ago
Johannes 'josch' Schauer 259a188e06
fix typo: 3030 -> 2020 (thanks Trent W. Buck!) 4 years ago
Johannes 'josch' Schauer 65e40c8c34
redirect stderr of dpkg --version to /dev/null to prevent error output if dpkg is too old (thanks Trent W. Buck!) 4 years ago
Johannes 'josch' Schauer 58925dc493
add two more debug messages 4 years ago
Johannes 'josch' Schauer 400b51ad7b
release 0.7.0 4 years ago
Johannes 'josch' Schauer 3713735240
document non-functional --variant=standard due to bug #968217 4 years ago
Johannes 'josch' Schauer 7c752fa8a0
print elapsed time after successful run 4 years ago
Johannes 'josch' Schauer 74725ac451
coverage.sh: test eatmydata and merged-usr hooks 4 years ago
Johannes 'josch' Schauer 465c056434
no longer needs to install twice when --depkgopt=path-exclude is given by filtering the tarball with new tarfilter utility 4 years ago
Johannes 'josch' Schauer 8f09c3e02f
unless in chrootless mode, omitting stuff in /var/lib/dpkg does not depend on the dpkg version outside, but on the version inside the chroot (and we don't know that one yet) 4 years ago