This commit is contained in:
mwiegand 2021-06-26 00:21:40 +02:00
parent 4e2f50f79b
commit 856e74f1e4
2 changed files with 14 additions and 1 deletions

View file

@ -70,5 +70,16 @@ for host, sources in hosts.items():
}
for package, options in node.metadata.get('apt/packages', {}).items():
for package, options in node.metadata.get('apt/packages', {}).items():
pkg_apt[package] = options
if options.get('backports', None):
pkg_apt[package].pop('backports')
files[f'/etc/apt/preferences.d/{package}'] = {
'content': '\n'.join([
f"Package: {package}",
f"Pin: release a={node.metadata.get('os_release')}-backports",
f"Pin-Priority: 900",
]),
}

View file

@ -15,12 +15,14 @@ defaults = {
},
},
'zfs-dkms': {
'backports': True,
'needed_by': {
'pkg_apt:zfs-zed',
'pkg_apt:zfsutils-linux',
},
},
'zfs-zed': {
'backports': True,
'needed_by': {
'zfs_dataset:',
'zfs_pool:',