Commit graph

939 commits

Author SHA1 Message Date
307cbf5a41
prefix certain progress bars with what is being done (closes: #16) 2020-08-18 14:31:38 +02:00
df18304449
add a new pipe to communicate the number of blocks to the parent instead of abusing the hookhelper/listener 2020-08-18 12:08:55 +02:00
a5ea38cbad
fix docs: there are four hooks, not three 2020-08-18 09:38:22 +02:00
0451d5f004
do not suggest using --dpkgopt=force-unsafe-io because it barely brings any speedups, see Debian bug #613428 2020-08-18 09:37:53 +02:00
614ef0e43d
make it clear that --aptopt and --dpkgopt add their content permamently 2020-08-18 09:37:08 +02:00
23fb2055e4
fix error message to specify the right command 2020-08-18 09:36:27 +02:00
501e29fdeb
fix closedir calls 2020-08-18 09:35:56 +02:00
05d8b5f253
hooks/eatmydata: download instead of copy-ing from host 2020-08-17 19:01:27 +02:00
95400ee1e2
coverage.sh: add test for hook-dir 2020-08-17 18:59:54 +02:00
12f41ad33f
fix syntax for perltidy 2020-08-17 18:57:36 +02:00
075645289f
add --hook-directory option and a directory with hooks 2020-08-16 00:50:46 +02:00
e2a759967f
put hook listener into its own function and expose it to the CLI via --hook-listener 2020-08-15 22:36:13 +02:00
c2c270390b
implement dpkg-realpath in perl so that we don't need to run tar inside the chroot anymore for modes other than fakechroot and proot 2020-08-15 18:29:17 +02:00
dc67c1f4be
if we got dpkg >= 1.20.0, then we don't have to create certain files and directories ourselves 2020-08-15 18:09:06 +02:00
e8144b1fbb
coverage.sh: run diff with -u 2020-08-15 18:07:45 +02:00
8c467584f6
coverage.sh: check that xattrs are set in the original tarball 2020-08-15 18:05:59 +02:00
7ec0e1b4e1
coverage.sh: skip prio:standard test because python is priority:standard but uninstallable since August 03 2020, see Debian bug #968217 2020-08-13 14:03:31 +02:00
d9153818f4
since libcap2 2.41 or upstream commit 177cd418, the getcap output format changed 2020-08-11 22:43:44 +02:00
e2ee5b1e84
make_mirror.sh: workaround python being uninstallable since August 03 2020, see Debian bug #968217 2020-08-11 09:51:03 +02:00
6af42fafe9
coverage.sh: document how to check for new chrootless packages 2020-07-09 07:40:54 +02:00
6eb52d8095
coverage.sh: print unified diff 2020-07-09 07:35:59 +02:00
35b72c9895
coverage.sh: skip tests because of #963788 2020-07-09 07:34:38 +02:00
904274b9f4
adjust genext2fs (>= 1.5.0) interface 2020-07-09 07:34:03 +02:00
6c4c4bef41
coverage.sh: comparing amd64 with i386 should only be done with RUN_MA_SAME_TESTS = yes 2020-06-24 23:11:03 +02:00
c633a9ac0d
coverage.sh: add test for known-good chrootless packages 2020-06-24 23:10:29 +02:00
1dc0984821
Revert "remove libgcc1 for libc6 >= 2.30-2" -- situation in debootstrap is fixed
This reverts commit a91d7440cb.
2020-06-24 09:34:34 +02:00
112c0a5a6d
add documentation about --{setup,extract,essential,customize}-hooks and --skip option, making them an official interface 2020-06-23 23:14:37 +02:00
40b6155967
add another --dpkgopt example 2020-06-23 23:12:16 +02:00
4d041140d5
instead of 'du' we use File::Find to avoid different results on different filesystems, see https://bugs.debian.org/650077 for a discussion 2020-06-23 22:45:17 +02:00
655857e525
don't use apt sandboxing in fakechroot or proot modes 2020-06-08 15:45:22 +02:00
af13116336
do not hide errors even with --quiet
This change also fixes the problem that when --quiet is given, an error
will never lead to a non-zero exit status because the error function
returns before it runs die()
2020-05-10 13:36:54 +02:00
da4de7cfdf
coverage.sh: test wrapping debootstrap in mmdebstrap 2020-05-03 20:32:50 +02:00
dc9a5dc281
document how to use mmdebstrap as a debootstrap wrapper 2020-05-03 17:19:03 +02:00
fa12e4f488
create /tmp with chmod 01777 2020-05-03 17:18:34 +02:00
b60893aa83
add --skip=output/dev 2020-05-03 15:06:41 +02:00
e1d0a17751
return immediately if nothing to do in download, extract and essential stages 2020-05-03 15:06:24 +02:00
c0ee8c82db
coverage.sh: check bit-by-bit identical squashfs and ext2 output using S_D_E between root and unshare modes 2020-05-03 09:40:37 +02:00
ccae6de410
fix message 'failed to start' -> 'failed to run' 2020-05-02 23:55:34 +02:00
be2bb0bb7e
do not emit a tarball with xattrs for squashfs and ext2 output because tar2sqfs and genext2fs do not support extended attributes 2020-05-02 23:55:05 +02:00
da88c56b9f
warn if chrootless mode is run by the root user 2020-05-02 23:54:04 +02:00
6af46f0b4a
fix typo squasfs -> squashfs 2020-05-02 23:53:41 +02:00
08319f6c77
Return the same block number irrespective of what is in /dev
Depending on the mode an on whether mknod works (mount options of
$TMPDIR) different stuff might be in /dev. To make the blocksize in of
the ext2 output format reproducible, ignore the content of /dev.
2020-05-02 23:51:58 +02:00
af5841269c
always check if _apt user can access /var/lib/apt/lists/partial 2020-05-02 23:51:33 +02:00
c462a080c3
make_mirror.sh: create debootstrap directory with mktemp
if debootstrap is run without qemu and make_mirror.sh is aborted the
partly debootstrapped directory is left over. To avoid debootstrapping
into the same directory (and failing at it) we generate a new temporary
directory every time with mktemp
2020-05-02 00:14:39 +02:00
af4e77903b
add instructions how to convert from ext2 to ext3 and ext4 2020-05-02 00:12:31 +02:00
3b67de6d31
add note about the dangers of chrootless mode 2020-05-02 00:12:31 +02:00
5cf209996e
format mmdebstrap bold in POD 2020-05-02 00:12:31 +02:00
4ea784c1bc
add --skip check/empty 2020-05-02 00:12:26 +02:00
1b380e4513
add --skip check/qemu 2020-05-01 07:39:26 +02:00
Helmut Grohne
d7f7f8cb34
skip the emulation check in chrootless mode
Whenever the selected architecture differs from the native architecture
of the system that runs mmdebstrap, mmdebstrap checks whether it can run
the selected architecture. In the majority of cases, this is good and
helps avoid difficult to diagnose issues. However when running in
chrootless mode, we don't actually want to run any binaries from the
target system. For that reason, the emulation check should be skipped in
chrootless mode.
2020-04-14 18:25:55 +02:00