Am Montag, dem 24.01.2022 um 16:54 +0100 schrieb Johannes Schauer Marin Rodrigues: > Quoting Benjamin Drung (2022-01-24 16:22:43) > > I tested this in a minimal Debian schroot: > > > > ``` > > apt -y install mmdebstrap > > mkdir -p preferences.d > > printf 'Package: *\nPin: release l=Debian,n=bookworm\nPin-Priority: > > 400\n' > preferences.d/bookworm.pref > > mmdebstrap -v --variant=minbase \ > > --aptopt="Dir::Etc::preferencesparts \"$(pwd)/preferences.d/\"" \ > > --include=python3-minimal/bullseye,python3 \ > > --essential-hook="copy-in preferences.d/bookworm.pref > > /etc/apt/preferences.d" \ > > bullseye root.tar \ > > "deb http://deb.debian.org/debian bullseye main" \ > > "deb http://deb.debian.org/debian bookworm main" > > ``` > > > > It fails on a Debian bullseye schroot, but succeeds on an unstable > > schroot. Since the mmdebstrap version from unstable needs a newer > > APT > > version, there is no easy way for backporting. > > > > Is setting `Dir::Etc::preferencesparts` to an absolute path the way > > to > > go forward? In this case it would be nice if I could set > > `Dir::Etc::preferencesparts` to something like > > "$CURDIR/preferences.d/" > > and let mmdebstrap resolve it to the absolute path. > > 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, 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). -- 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