Hi,

Quoting Tobias Frost (2021-02-23 09:15:30)
> > But even if support was there, what you try to do above would not work
> > because currently one cannot pass any other configuration than the one in
> > /etc/dpkg to dpkg. Since in chrootless mode, we never "chroot", dpkg will
> > always use the system configuration and completely ignore whatever you put
> > into your chroot using the --dpkgopt option.
>  
> > I talked about this with guillem in #debian-dpkg on IRC and he is aware of 
> > the
> > issue but I don't think there is an open bug about this.
> > 
> > What we could do on the mmdebstrap side, is to warn the user or error out if
> > the user tries to run chrootless mode with --dpkgopt.
> 
> Yepp, mmdebootstrap should give a hint that this is not working.

Done in commit ecbc10794c64dc0ff284bdcbf8c03c61c6f75f91

It will now print this warning:

"dpkg is unable to read an alternative configuration in chrootless mode -- see
Debian bug #808203"

> (But even if dpkg would honor the targets settings, the directory would still
> be needed to be created and the file being copiedā€¦)

Done in commit 49f464e7da353f95520c30d06f6a4ddddcdb8fa5

> My 2 cents: As there are fudamental problems with chrootless, maybe this
> should be documented in the manpage as "currently non-functional beside
> minimal custom variants". (the man page suggests it is a working featureā€¦ )

Done in commit d5c8a85aceb9cac6d0a13fbdbdd682e0f198974d

I added:

"Only very few packages support this mode. Namely, as of 2021, not all
essential packages support it, mainly due to missing support in debconf. See
https://wiki.debian.org/Teams/Dpkg/Spec/InstallBootstrap or the
dpkg-root-support usertag of debian-d...@lists.debian.org in the Debian bug
tracking system."

> If you agree, I'd clone this bug and retitle one "document chrootless not yet
> functional" and one for the original reported problem about the
> /etc/dpkg/dpkg.cfg.d/99mmdebstrap.

All already taken care of. :)

> Do you want to file a bug for dpkg?

There already is #808203.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to