Am Montag, dem 24.01.2022 um 17:23 +0100 schrieb Johannes Schauer Marin Rodrigues: > Quoting Benjamin Drung (2022-01-24 17:14:18) > > > to make sure I understand your problem correctly: The mmdebstrap > > > version in > > > unstable is doing exactly what you want/expect but only the > > > version in > > > stable is not doing what you want? > > > > Yes, > > The difference you see between running the stable version with and > without > --simulate is that when you use --simulate, there is no apt inside > the chroot > and thus apt from the outside is used and that apt has access to > different > paths than the apt inside the chroot. > > This is not the case anymore with mmdebstrap in unstable because > there we never > use apt inside the chroot [...]
That's a good change then. :) > > but the mmdebstrap version in unstable requires one to specify the > > full path > > to the preference file. > > > > It would be nice if I could set `Dir::Etc::preferencesparts` to > > something like "$CURDIR/preferences.d/" without needed to parse > > this > > expression with Bash (since that would not work when specifying it > > in a YAML > > file for bdebstrap). > > I do not yet understand why your "copy-in" essential hook where you > copy > bookworm.pref into /etc/apt/preferences.d inside the chroot doesn't > solve this > problem for you. Even though mmdebstrap doesn't run apt from inside > the chroot > anymore, it uses the configuration from /etc/apt inside the chroot. "copy-in" works mostly for us, but it has two problems: 1) "copy-in" is executed after the essential packages were installed. So bookworm.pref needs to be made available via aptopts for the essential packages. In our in-house use case, we can live with this drawback (since we rarely touch the essential packages). 2) The essential hook is not executed with running with --simulate. So the simulation would ignore the pinning file. -- Benjamin Drung Senior DevOps Engineer and Debian & Ubuntu Developer Compute Platform Operations Cloud IONOS SE | Revaler Str. 30 | 10245 Berlin | Deutschland E-Mail: benjamin.dr...@ionos.com | Web: www.ionos.de Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498 Vorstand: Hüseyin Dogan, Dr. Martin Endreß, Claudia Frese, Henning Kettler, Arthur Mai, Britta Schmidt, Achim Weiß Aufsichtsratsvorsitzender: Markus Kadelke Member of United Internet
signature.asc
Description: This is a digitally signed message part