add example on how to add additional apt sources

This commit is contained in:
Johannes Schauer Marin Rodrigues 2023-10-23 11:52:28 +02:00
parent 16c7276921
commit 2d758ba576
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -6693,6 +6693,10 @@ installed. At that point, the chroot directory does not contain any
executables and thus cannot be chroot-ed into. See section B<HOOKS> for more
information.
Example: add additional apt sources entries on top of the default ones:
--setup-hook='echo "deb http..." > "$1"/etc/apt/sources.list.d/custom.list'
Example: Setup chroot for installing a sub-essential busybox-based chroot
with --variant=custom
--include=dpkg,busybox,libc-bin,base-files,base-passwd,debianutils