From fe999e3cdb244bef2bd425918bc874b0018e94aa Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 8 Jan 2023 08:56:24 +0100 Subject: debvm-create: allow skipping the usrmerge hook --- debvm-create | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/debvm-create b/debvm-create index 1f5e8df..5ddbd2f 100755 --- a/debvm-create +++ b/debvm-create @@ -75,10 +75,6 @@ The following tasks may be skipped. =over 4 -=item B - -skips installing B as well as automatic network configuration via B. - =item B reduces the package lists inside the image. @@ -86,6 +82,15 @@ The B database for B is not created. The package lists used by B are deleted. This generally produces a smaller image, but you need to run B before installing packages and B does not work. +=item B + +skips installing B as well as automatic network configuration via B. + +=item B + +By default B adds a hook to enable merged-/usr without the B package given a sufficiently recent Debian release. +Without the hook, dependencies will pull the B package as needed, which may result in a larger installation. + =back =item B<-z> I, B<--size>=I @@ -355,7 +360,7 @@ if test "$DEBVER" -le 8; then set -- --hook-dir=/usr/share/mmdebstrap/hooks/jessie-or-older "$@" fi -if test "$DEBVER" -ge 12; then +if test "$DEBVER" -ge 12 && ! check_skip usrmerge; then # Avoid the usrmerge package set -- --hook-dir=/usr/share/mmdebstrap/hooks/merged-usr "$@" fi -- cgit v1.2.3