warn if --dpkgopt is used in chrootless mode because of #808203

pull/1/head
parent 49f464e7da
commit ecbc10794c
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -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} }) {

Loading…
Cancel
Save