629187cd68
set MMDEBSTRAP_FORMAT in hooks
2023-10-23 10:35:07 +02:00
e77e194ebd
only warn if symlink cannot be created, don't error out
2023-10-23 10:33:54 +02:00
bc7ce4affc
skip symlink creation if it already exists
2023-10-23 10:33:37 +02:00
21366f76b7
Stop copying qemu-$arch-static binary into the chroot
...
- since qemu-user binfmt has support for pre-opening the interpreter
since stretch, there is no reason to copy it into the chroot anymore
2023-09-28 07:53:48 +02:00
bf41b91e6f
Properly implement --skip=output/dev and add --skip=output/mknod
...
- the first implementation of --skip=output/dev was broken in root mode
- add tests
- add documentation
2023-09-28 07:53:43 +02:00
cee8b67045
clarify, that deb.d.o is only used if SUITE is not a stable release
2023-09-27 08:03:23 +02:00
669c404938
typos: qume->qemu, SYS_CAP_ADMIN->CAP_SYS_ADMIN
2023-09-27 08:00:15 +02:00
c23727e136
export container=mmdebstrap-unshare environment variable in unshare-mode hooks
2023-09-27 07:56:49 +02:00
eaa67aea9c
fixup comment indentation
2023-09-27 07:52:35 +02:00
6cc9d1b99b
release 1.3.8
2023-08-20 13:38:13 +02:00
1c67ac111a
exclude ./lost+found from tarball
2023-08-20 08:01:37 +02:00
4d76d04cfe
release 1.3.7
2023-06-21 07:56:05 +02:00
73f06a6356
set MMDEBSTRAP_SUITE when running hooks
2023-06-21 07:54:07 +02:00
5a6883970a
release 1.3.6
2023-06-16 07:02:13 +02:00
04950847d3
add debvm and bdebstrap to docs
2023-06-16 07:01:12 +02:00
81d155cac8
release 1.3.5
2023-03-20 06:26:51 +01:00
b3338bd33b
refine warnings and add documentation for using --include with .deb files in unshare mode
2023-03-19 09:04:06 +01:00
19a2ec044a
fix undefined variable in error message
2023-03-19 09:02:43 +01:00
4d44b9dbbe
export MMDEBSTRAP_ARGV0 for hooks
2023-03-19 09:00:46 +01:00
9710ee16a0
release 1.3.4
2023-03-17 22:54:06 +01:00
ff9b76ed19
improve debug and error message wording
2023-03-16 22:18:49 +01:00
Jakub Wilk
a719ffd20a
Fix apt.conf permissions
...
Having world-writable apt.conf may be exploited by locals users to
execute arbitrary code in the context of the user running mmdebstrap.
2023-03-16 21:56:16 +01:00
55cae49ec7
let test_unshare_userns error out itself if necessary
2023-03-16 08:14:39 +01:00
055e1719b9
try unsharing before automatically choosing unshare mode
2023-03-15 17:08:12 +01:00
cc8dab5be8
add non-free-firmware to docs
2023-03-05 10:02:23 +01:00
Jochen Sprickerhof
84ea1e042b
Fail in --mode=unshare when newuidmap is not available
2023-03-03 23:59:19 +01:00
158607b3af
mmdebstrap: improve docs for --keyring
2023-03-02 11:53:43 +01:00
e7f21ce04c
Do not die if reading the number of ext2 blocks failed as that would skip the cleanup action
...
Reported-by: Helmut Grohne <helmut@subdivi.de>
2023-02-23 21:50:55 +01:00
8bdd04fce1
release 1.3.3
2023-02-19 09:36:57 +01:00
f3ab0a3d2d
release 1.3.2
2023-02-16 07:33:11 +01:00
46fc269b54
improve documentation of unshare mode
2023-02-14 22:00:19 +01:00
8d9a94fca5
if /proc is bind-mounted, make it a (recursive) slave mount so that changes to it (like unmounting) do not propagate to the outside
...
Thanks: Helmut Grohne
2023-02-12 14:05:09 +01:00
a23dd36bb6
fix warning to not talk about bind-mounting
2023-02-10 04:00:11 +01:00
8f8f5bd706
relax apt version regex even further to be able to cope with versions like 2.5.3ubuntu0.1
2023-02-10 04:00:10 +01:00
9ebb3d07ac
unify /proc mounting between root and unshare mode and fall back to rbind-mounting
...
This makes unshare mode work on salsaci and debci.
2023-02-10 03:59:33 +01:00
b990a3aa09
run apt with -oDebug:: options for all calls and not only in run_download()
2023-02-01 18:39:26 +01:00
a0133a6393
document maybe-merged-usr hook
2023-01-26 09:28:50 +01:00
7910ca79ac
redirect apt-helper drop-privs output to /dev/null as we are only interested in the exit status and want to avoid spurious error messages from apt
2023-01-26 09:28:35 +01:00
f737cce3f1
Support creating a fakechroot with merged-/usr on an unmerged-/usr system
...
Thanks: Helmut Grohne for finding this issue and help interating this
2023-01-24 09:58:42 +01:00
d554c0b469
de-duplicate FAKECHROOT_CMD_SUBST variable
2023-01-23 15:01:21 +01:00
9cc494f245
release 1.3.1
2023-01-20 07:11:03 +01:00
5ea299f3d2
document the apt variant better
2023-01-20 07:08:55 +01:00
736cb493ea
release 1.3.0
2023-01-16 19:30:13 +01:00
c738e96752
allow empty sources.list entries
2023-01-16 15:19:50 +01:00
860a9048d5
make info message lowercase like the rest
2023-01-16 15:01:30 +01:00
327b75846f
add --skip=check/signed-by
2023-01-16 14:58:23 +01:00
ec58228f71
add more docs that non-empty SUITE will be used to select Essential:yes set
2023-01-16 14:32:42 +01:00
f27ed490d6
Do not split --include values again in run_download and run_install
...
Closes : #1028977
2023-01-16 12:13:21 +01:00
36f691f22b
document that positional arguments can be mixed with non-positional ones and that a double-dash has the expected effect
2023-01-16 12:06:20 +01:00
b0a5c30fb1
to find signed-by value, run gpg on the individual keys to print better error messages in case it fails (gpg doesn't give an indication which file it was unable to read) and print progress bar
2023-01-16 12:06:20 +01:00
ea2b57870b
warn if a hook is named like one but not executable and if a hook is executable but not named like one
2023-01-16 07:55:27 +01:00
0b7188ce32
be more verbose when 'apt-get update' failed
2023-01-16 07:54:27 +01:00
9945e65701
skip running apt-get update if we are very sure that it was already run
2023-01-16 07:43:09 +01:00
5fd96553f5
release 1.2.5
2023-01-04 07:24:50 +01:00
b67d30cb86
mmdebstrap: bump copyright year
2023-01-04 07:24:14 +01:00
d4eb268795
warn if hook directory contains no executable scripts
2023-01-04 07:23:56 +01:00
4595d3df44
release 1.2.4
2022-12-23 10:57:11 +01:00
2b832e0128
add jessie-or-older extract hook
2022-12-23 10:06:28 +01:00
a7b7e16033
move extract hook execution after run_prepare so that fakechroot works in it
2022-12-23 10:06:28 +01:00
eb98dfbaee
apt also needs /var/lib to exist
2022-12-23 10:06:28 +01:00
6c5210a94f
error out early if setup fails and thus the ext2 block reader returns EOF
2022-12-23 10:06:28 +01:00
a6a31e60eb
make sure that the unshared user has read access to the included package files
2022-12-23 10:06:28 +01:00
0dfd9adf2b
make sure absolute package paths start with a slash and are readable files
2022-12-23 10:06:28 +01:00
2fd3d768e8
avoid division by zero in progress computation
2022-12-23 10:06:27 +01:00
830270840b
make sure genext2fs and genext2fs exist for the respective formats
2022-12-21 20:02:56 +01:00
Jochen Sprickerhof
374ae3dc99
use $username for subgid check
...
/etc/subgid contains a mapping of user names (not group names) to group
ids as defined in man subgid.
2022-11-18 21:39:15 +01:00
7a057e37dd
release 1.2.3
2022-11-16 14:06:50 +01:00
889c02419e
update for perltidy 20220613
2022-11-15 14:48:01 +01:00
420080648e
Revert "add another --dpkgopt example"
...
This reverts commit 40b6155967
.
dpkg does not support the {foo,bar,baz} type of glob
Closes : #28
2022-11-14 14:35:12 +01:00
ea146ad108
add undocumented --chrooted-*-hook calling pivot_root in unshare mode
2022-11-14 14:35:12 +01:00
449fb248e2
Instead of mounting and unmounting for each run_chroot() call, do it once before the extract hook and unmount after the customize hooks
2022-11-14 14:31:06 +01:00
eb54f6a23a
Instead of re-execing mmdebstrap under /bin/sh, use Text::ParseWords::shellwords
...
- saves a few PIDs
- saves a bit of time because useless exec and fork is avoided
- allows to run in pivoted chroots without mmdebstrap
2022-11-14 14:31:05 +01:00
bf33a614c3
add mini-mmdebstrap in shell to the man page
2022-11-14 14:31:05 +01:00
d9ca7c21ff
make failure to remove /dev/ptmx a warning and not an error
2022-11-07 16:10:55 +01:00
b454892ddd
release 1.2.2
2022-10-27 16:11:30 +02:00
e887a329ab
more changes for merged-/usr which is now default in testing and unstable
2022-10-18 10:32:03 +02:00
4048293be5
only print progress bars on interactive terminals that are wide enough
2022-10-16 22:03:06 +02:00
d4cb065639
Write an empty /etc/machine-id instead of writing 'uninitialized'.
...
Writing "uninitialized" instructs systemd to run units with
ConditionFirstBoot=yes which should only be done by tools that know how
to correctly set up such units.
Debian-Bug: #1021478
2022-10-10 15:01:03 +02:00
Jochen Sprickerhof
adf62afcea
guestfish: move set-label after mkfs
...
Fixes:
libguestfs: error: set_label: don't know how to set the label for '' filesystems
2022-09-23 09:23:38 +02:00
3999212c48
always create /var/lib/dpkg/arch to make foreign architecture chrootless tarballs bit-by-bit identical
2022-09-22 14:22:37 +02:00
6c68ab2e5e
also provide the info() function to debootstrap
2022-09-12 11:56:26 +02:00
2f27eccad4
allow /etc/apt/trusted.gpg.d/ not to exist
2022-09-11 21:12:14 +02:00
045b56bb4e
release 1.2.1
2022-09-08 04:43:37 +02:00
7123808b6c
do not clean up /run/lock as /var/lock is a symlink to it according to Debian policy §9.1.4
2022-09-06 21:30:48 +02:00
410c5fcb24
fix --include option for files and add test case
2022-09-06 13:06:40 +02:00
9682e74385
release 1.2.0
2022-09-05 06:26:40 +02:00
b0caeeef54
bump dates to 2022
2022-09-05 06:25:24 +02:00
d209fb0c11
reformat with perltidy
2022-09-05 06:21:17 +02:00
f4a3865c00
Remove support for proot.
...
The proot mode was broken from the start because in contrast to
fakechroot, no ownership information can be retained across multiple
invocations of proot. Since mmdebstrap started using apt from the
outside by setting DPkg::Chroot-Directory in mmdebstrap 0.8.0 proot mode
was finally completely broken because proot cannot wrap the chroot call
done by apt. Users of proot are recommended to run mmdebstrap in
fakechroot mode and then use proot with the resulting directory.
2022-09-05 06:21:17 +02:00
7e8931578b
Store --include option values in MMDEBSTRAP_INCLUDE for hooks
2022-09-05 06:21:07 +02:00
e1f0b0fa40
ensure operator precedence using more parenthesis
2022-09-02 23:38:53 +02:00
e875bca7fb
support apt patterns and paths with commas and whitespace for the --include option
2022-09-02 23:35:56 +02:00
0af22912f7
also delete everything in /run and add --skip=cleanup/run
2022-09-02 23:29:52 +02:00
add9412a47
add --skip=chroot/mount and --skip=chroot/mount/dev, --skip=chroot/mount/proc, --skip=chroot/mount/sys
2022-09-02 23:27:27 +02:00
e61e352f67
add --skip=chroot/start-stop-daemon and --skip=chroot/policy-rc.d
2022-09-02 23:25:48 +02:00
18c1e9bbc5
multiple skip options can be passed by separating them by comma or whitespace
2022-09-02 23:23:53 +02:00
7ce6db0ca7
mmdebstrap: Show APT's dependency trace when in debug mode
...
A dependency trace is a powerful tool to debug issues related to
APT's selection of packages, especially in custom mode.
Thus it makes sense to ask APT to output a dependency trace when
`mmdebstrap` is run with the `--debug` flag.
2022-09-02 10:46:51 +02:00
226f86fea9
fix mmdebstrap hanging if apt in download step failed ( closes : #1017795 )
2022-08-30 21:55:57 +02:00
34a9de929d
use standard character classes instead of bracketed character classes
2022-07-28 17:22:47 +02:00
b385eb548a
only check first argument if we have one
2022-07-28 17:21:27 +02:00