bundles/smartd: ignore partitions in smartd check

This commit is contained in:
Franzi 2023-07-13 21:30:49 +02:00
parent d0825a51ee
commit bbfa985e1d
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -1,3 +1,5 @@
from re import search
defaults = { defaults = {
'apt': { 'apt': {
'packages': { 'packages': {
@ -53,6 +55,9 @@ def zfs_disks_to_metadata(metadata):
continue continue
for disk in option['devices']: for disk in option['devices']:
if search(r'p([0-9]+)$', disk):
continue
disks.add(disk) disks.add(disk)
return { return {