forked from josch/mmdebstrap
warn if --dpkgopt is used in chrootless mode because of #808203
This commit is contained in:
parent
49f464e7da
commit
ecbc10794c
1 changed files with 5 additions and 1 deletions
|
@ -1644,7 +1644,11 @@ sub run_setup() {
|
||||||
|
|
||||||
if (scalar @{ $options->{dpkgopts} } > 0) {
|
if (scalar @{ $options->{dpkgopts} } > 0) {
|
||||||
# FIXME: in chrootless mode, dpkg will only read the configuration
|
# 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"
|
open my $fh, '>', "$options->{root}/etc/dpkg/dpkg.cfg.d/99mmdebstrap"
|
||||||
or error "cannot open /etc/dpkg/dpkg.cfg.d/99mmdebstrap: $!";
|
or error "cannot open /etc/dpkg/dpkg.cfg.d/99mmdebstrap: $!";
|
||||||
foreach my $opt (@{ $options->{dpkgopts} }) {
|
foreach my $opt (@{ $options->{dpkgopts} }) {
|
||||||
|
|
Loading…
Reference in a new issue