mkosi: use apt pinning for locally built debian/ubuntu packages

This ensures that even in case the distro repository has newer
versions, the locally built packages are preferred and installed,
even to the point of downgrading already installed ones.
This is needed especially for future stable branches, when the
distros will have a newer version.
This commit is contained in:
Luca Boccassi
2024-07-05 16:36:45 +01:00
committed by Luca Boccassi
parent b5eaa52d49
commit 1ee8e526d7
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Package: *
Pin: release l=mkosi
Pin-Priority: 1100

View File

@@ -11,6 +11,9 @@ Environment=
GIT_BRANCH=debian/master
GIT_COMMIT=abf24e775c67cf054f474526dd5d9d952a00228b
[Distribution]
PackageManagerTrees=mkosi-pinning.pref:/etc/apt/preferences.d/mkosi-pinning.pref
VolatilePackages=
libnss-myhostname
libnss-mymachines