bundles/zfs: support other cpu architectures

This commit is contained in:
Franzi 2023-05-20 12:38:27 +02:00
parent 0db4c19457
commit b1567443ca
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -3,11 +3,6 @@
defaults = {
'apt': {
'packages': {
'linux-headers-amd64': {
'needed_by': {
'pkg_apt:zfs-dkms',
},
},
'zfs-dkms': {
'needed_by': {
'pkg_apt:zfs-zed',
@ -147,6 +142,24 @@ def packages(metadata):
},
}
@metadata_reactor.provides(
'apt/packages',
)
def linux_headers(metadata):
cpu_arch = metadata.get('cpu_arch', 'amd64')
return {
'apt': {
'packages': {
f'linux-headers-{cpu_arch}': {
'needed_by': {
'pkg_apt:zfs-dkms',
},
},
},
},
}
@metadata_reactor.provides(
'systemd-timers/timers/zfs-scrub',