document how to run chrootless mode wrapped inside mmdebstrap

This commit is contained in:
Johannes Schauer Marin Rodrigues 2024-01-09 10:30:50 +01:00
parent 417d958a14
commit 2ff8f6142d
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -6956,10 +6956,13 @@ dpkg-root-support usertag of debian-dpkg@lists.debian.org in the Debian bug
tracking system. B<WARNING>: if this option is used carelessly with packages tracking system. B<WARNING>: if this option is used carelessly with packages
that do not support C<DPKG_ROOT>, this mode can result in undesired changes to that do not support C<DPKG_ROOT>, this mode can result in undesired changes to
the system running B<mmdebstrap> because maintainer-scripts will be run without the system running B<mmdebstrap> because maintainer-scripts will be run without
L<chroot(1)>. L<chroot(1)>. Make sure to run this mode without superuser privileges and/or
inside a throw-away chroot enviroment like so:
=for TODO mmdebstrap --variant=apt --include=mmdebstrap \
=item B<qemu> --customize-hook='chroot "$1" mmdebstrap --mode=chrootless
--variant=apt unstable chrootless.tar' \
--customize-hook='copy-out chrootless.tar .' unstable /dev/null
=back =back