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?

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to