bundles/smartd: do not try to monitor encrypted devices

This commit is contained in:
Franzi 2024-02-25 14:45:47 +01:00
parent 781264432a
commit c6552e8dd2
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -55,7 +55,7 @@ def zfs_disks_to_metadata(metadata):
continue
for disk in option['devices']:
if search(r'p([0-9]+)$', disk):
if search(r'p([0-9]+)$', disk) or disk.startswith('/dev/mapper/'):
continue
disks.add(disk)