summaryrefslogtreecommitdiffstats
path: root/hooks/copy-host-apt-sources-and-preferences
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:04:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:04:12 +0000
commit9694ed60541853cf6bb8d955b4b240dd853fa3fc (patch)
treea760946cc7522fd4789c07d8c154677317c6d1e3 /hooks/copy-host-apt-sources-and-preferences
parentAdding upstream version 1.4.3. (diff)
downloadmmdebstrap-9694ed60541853cf6bb8d955b4b240dd853fa3fc.tar.xz
mmdebstrap-9694ed60541853cf6bb8d955b4b240dd853fa3fc.zip
Adding upstream version 1.5.0.upstream/1.5.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'hooks/copy-host-apt-sources-and-preferences')
-rwxr-xr-xhooks/copy-host-apt-sources-and-preferences/setup00.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/hooks/copy-host-apt-sources-and-preferences/setup00.sh b/hooks/copy-host-apt-sources-and-preferences/setup00.sh
index 07caa78..9aafd78 100755
--- a/hooks/copy-host-apt-sources-and-preferences/setup00.sh
+++ b/hooks/copy-host-apt-sources-and-preferences/setup00.sh
@@ -1,4 +1,13 @@
#!/bin/sh
+#
+# This script makes sure that the apt sources.list and preferences from outside
+# the chroot also exist inside the chroot by *appending* them to any existing
+# files. If you do not want to keep the original content, add another setup
+# hook before this one which cleans up the files you don't want to keep.
+#
+# If instead of copying sources.list verbatim you want to mangle its contents,
+# consider using python-apt for that. An example can be found in the Debian
+# packaging of mmdebstrap in ./debian/tests/sourcesfilter
set -eu