Commit Graph

543 Commits (2e19a8bda49408a422581ff754620aea2dd62784)
 

Author SHA1 Message Date
Johannes 'josch' Schauer b143e170e2
coverage.sh: keep track of executed and skipped tests 4 years ago
Johannes 'josch' Schauer 04e40eca47
coverage.sh: output messages on stderr 4 years ago
Johannes 'josch' Schauer c6944d0b8f
cleanup leftovers in /tmp inside the chroot 4 years ago
Johannes 'josch' Schauer 61db086921
also clean package lists and apt cache from sources.d directory 4 years ago
Johannes 'josch' Schauer dc7663b3a8
coverage.sh: allow running tests on architectures other than amd64 with reduced functionality 4 years ago
Johannes 'josch' Schauer 4daae7e9be
coverage.sh: only patch /etc/shadow if necessary 4 years ago
Johannes 'josch' Schauer 46c9d4e058
coverage.sh: change busybox test to not be super sensitive about changes in unstable anymore 4 years ago
Johannes 'josch' Schauer ca9cb3145e
make_mirror.sh: set traps to automatically cleanup on failure 4 years ago
Johannes 'josch' Schauer aaac3e677f
make_mirror.sh: feed file to guestfish via heredoc instead of tempfile 4 years ago
Johannes 'josch' Schauer 163da0a72d
coverage.sh: add safety measure to ensure certain tests are not run outside qemu 4 years ago
Johannes 'josch' Schauer 95e4a82937
coverage.sh: redirect to /dev/null instead of --quiet to avoid broken pipe 4 years ago
Johannes 'josch' Schauer 327c0e83ca
further document prerequisites and limitations of different modes 4 years ago
Johannes 'josch' Schauer ecd5c7a662
fixup warning message 4 years ago
Johannes 'josch' Schauer 8abb93633c
warn that creating tarball might also fail in proot mode for extract and custom variants 4 years ago
Johannes 'josch' Schauer 05e796cd95
add missing error handlers for fork() and open() calls 4 years ago
Johannes 'josch' Schauer ed0b5069ce
on debug level verbosity, also print the line number 4 years ago
Johannes 'josch' Schauer 170344a611
coverage.sh: busybox sub-essential system now contains libcrypt1 4 years ago
Johannes 'josch' Schauer 75609a0b55
coverage.sh: make sure we have a gzip compressed file by checking the first three magic bytes 4 years ago
Johannes 'josch' Schauer b3949f6f7a
coverage.sh: continue loop after finding a program to diff with 4 years ago
Johannes 'josch' Schauer de85ad44b2
coverage.sh: reintroduce testing of debootstrap '-' variant 4 years ago
Johannes 'josch' Schauer c8f79cf4b5
document that --xattrs --xattrs-include='*' is needed when extracting a tarball 4 years ago
Johannes 'josch' Schauer 647e7e37f1
coverage.sh: test xattr support
When creating a tarball: --xattrs
When extracting a tarball: --xattrs --xattrs-include='*'
4 years ago
Johannes 'josch' Schauer a4b070e4dc
run_qemu.sh: use /dev/urandom as source for randomness 4 years ago
Johannes 'josch' Schauer c20056d48f
run_qemu.sh: use virtio disk and network 4 years ago
Johannes 'josch' Schauer 7815fd16e6
run_qemu.sh: run qemu with -no-user-config 4 years ago
Johannes 'josch' Schauer 06d08607cc
run_qemu.sh: let qemu autodetect if kvm is available and fall back to tcg 4 years ago
Benjamin Drung 1dbb576c99
Preserve extended attributes in tarball
When specifying a tarball as output format, the extended attributes are
lost. This leads to programs like ping fail to run as normal user.

Therefore preserve the extended attributes when generating the tarball.

Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
5 years ago
Johannes 'josch' Schauer 868081727e
add special hooks copy-in, copy-out, tar-in, tar-out, upload and download 5 years ago
Johannes 'josch' Schauer e6d5d74d87
--keyring now overwrites the default apt keyring
- apt can only handle one directory and one file as keyring
 - the signed-by option is used to specify the keyrings for suites that
   are not known by apt
5 years ago
Johannes 'josch' Schauer db1e7f27ad
add oldoldstable and jessie 5 years ago
Johannes 'josch' Schauer 2de2eb6a8c
add space between negation operator and test operator 5 years ago
Johannes 'josch' Schauer 394731102a
before unmounting /proc, check if /proc/sys/fs/binfmt_misc is mounted 5 years ago
Johannes 'josch' Schauer 6227bb2580
coverage.sh: add test for non-empty target directory 5 years ago
Johannes 'josch' Schauer d262d67877
Fix parallel xz compression... hopefully for the last time... 5 years ago
Johannes 'josch' Schauer 9f2ea61265
Fix parallel xz compression 5 years ago
Johannes 'josch' Schauer aad36777e8
add --man option and reduce output of --help option
Printing the full man page requires the perl-doc package. To avoid this
dependency, print the less verbose output containing only the synopsis
and the option list for the --help option and print the full output
(requiring perldoc) for the --man option.
5 years ago
Johannes 'josch' Schauer de8b6a457d
also run initial installation of Essential:yes with /proc, /dev and /sys mounted
In Debian Jessie, init is part of Essential:yes and thus systemd gets
installed which needs working /proc, /dev and /sys
5 years ago
Johannes 'josch' Schauer 3a1d5413e2
also remove /var/log/apt/eipp.log.xz 5 years ago
Johannes 'josch' Schauer f548c57ef8
coverage.sh: increase cover_db.img size to 256M 5 years ago
Johannes 'josch' Schauer f5afbfaab0
don't let make_path fail if directory already existed 5 years ago
Benjamin Drung 4b82a664da
Use parallel xz compression
One of mmdebstrap benefits over deboostrap is that it is faster.
Creating a xz tarball as output will take a lot of time, since xz
consumes a lot of compute power and tar uses only one core.

Therefore use parallel xz compression since xz supports it using the -T
parameter.

Closes: #943327
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
5 years ago
Johannes 'josch' Schauer bc423e6ab6
Add disclaimer of warranty and limitation of liability 5 years ago
Johannes 'josch' Schauer a2cd0e9843
add --keyring option as a shorthand for --aptopt='Dir::Etc::Trusted... 5 years ago
Johannes 'josch' Schauer 6cac8e70e8
allow multiple --include options and use array instead of hash
Package order is important when calling apt. Consider this dependency
graph:

    A -> B -> C | D , E -> D | C

"apt install A E" it will install "A B C E"
"apt install E A" it will install "E D A B"
5 years ago
Johannes 'josch' Schauer e12db588bd
add debug output for unknown data type 5 years ago
Johannes 'josch' Schauer da4f9e4349
check whether /sbin/start-stop-daemon.REAL exists before overwriting it 5 years ago
Johannes 'josch' Schauer daab09bfdd
only write /usr/sbin/policy-rc.d if /usr/sbin exists in the chroot 5 years ago
Johannes 'josch' Schauer c5a96736ef
coverage.sh: check that the expected number of tests get executed 5 years ago
Johannes 'josch' Schauer c403b2b238
coverage.sh: add test for removal of start-stop-daemon and policy-rc.d in hook 5 years ago
Johannes 'josch' Schauer e0732140c0
make hooks work in chrootless mode 5 years ago