From ecbc10794c64dc0ff284bdcbf8c03c61c6f75f91 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Tue, 23 Feb 2021 12:49:46 +0100 Subject: [PATCH] warn if --dpkgopt is used in chrootless mode because of #808203 --- mmdebstrap | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index f260bbb..f86fc01 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -1644,7 +1644,11 @@ sub run_setup() { if (scalar @{ $options->{dpkgopts} } > 0) { # FIXME: in chrootless mode, dpkg will only read the configuration - # from the host + # from the host -- see #808203 + if ($options->{mode} eq 'chrootless') { + warning('dpkg is unable to read an alternative configuration in' + . 'chrootless mode -- see Debian bug #808203'); + } open my $fh, '>', "$options->{root}/etc/dpkg/dpkg.cfg.d/99mmdebstrap" or error "cannot open /etc/dpkg/dpkg.cfg.d/99mmdebstrap: $!"; foreach my $opt (@{ $options->{dpkgopts} }) {