From 49f464e7da353f95520c30d06f6a4ddddcdb8fa5 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Tue, 23 Feb 2021 12:49:26 +0100 Subject: [PATCH] create /etc/dpkg/dpkg.cfg.d/ if --dpkgopt is used --- mmdebstrap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index 0e78df6..f260bbb 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -1448,7 +1448,8 @@ sub run_setup() { # since we do not know the dpkg version inside the chroot at this # point, we can only omit it in chrootless mode if ( $options->{mode} ne 'chrootless' - or $dpkgversion < "1.20.0") { + or $dpkgversion < "1.20.0" + or scalar @{ $options->{dpkgopts} } > 0) { push @directories, '/etc/dpkg/dpkg.cfg.d/'; } # if dpkg and apt operate from the outside we need some more