Quoting Benjamin Drung (2022-01-25 17:48:42)
> > 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).

Why not use "copy-in" as a setup-hook? Then the first "apt-get update" will
pick up the configuration.

> 2) The essential hook is not executed with running with --simulate. So the
>    simulation would ignore the pinning file.

I find it interesting that somebody is using the --simulate option. In what
scenario is it useful to have it?

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to