summaryrefslogtreecommitdiff
path: root/debvm-create
diff options
context:
space:
mode:
Diffstat (limited to 'debvm-create')
-rwxr-xr-xdebvm-create19
1 files changed, 15 insertions, 4 deletions
diff --git a/debvm-create b/debvm-create
index f3f9895..1f5e8df 100755
--- a/debvm-create
+++ b/debvm-create
@@ -75,7 +75,16 @@ The following tasks may be skipped.
=over 4
-=item B<systemdnetwork> skips installing B<libnss-resolve> as well as automatic network configuration via B<systemd-networkd>.
+=item B<systemdnetwork>
+
+skips installing B<libnss-resolve> as well as automatic network configuration via B<systemd-networkd>.
+
+=item B<packagelists>
+
+reduces the package lists inside the image.
+The B<available> database for B<dpkg> is not created.
+The package lists used by B<apt> are deleted.
+This generally produces a smaller image, but you need to run B<apt update> before installing packages and B<dpkg --set-selections> does not work.
=back
@@ -332,10 +341,12 @@ if test -n "$SSHKEY"; then
"$@"
fi
-set -- --skip=cleanup/apt/lists "$@"
+if ! check_skip packagelists; then
+ set -- --skip=cleanup/apt/lists "$@"
-# We need /var/lib/dpkg/available for dpkg --set-selections to work.
-set -- '--customize-hook=chroot "$1" apt-cache dumpavail | chroot "$1" dpkg --update-avail' "$@"
+ # We need /var/lib/dpkg/available for dpkg --set-selections to work.
+ set -- '--customize-hook=chroot "$1" apt-cache dumpavail | chroot "$1" dpkg --update-avail' "$@"
+fi
if test "$DEBVER" -le 8; then
# Use obsolete and expired keys.