From bbfa985e1dbb2ae4111000da35e14dc29f4e55af Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 13 Jul 2023 21:30:49 +0200 Subject: [PATCH] bundles/smartd: ignore partitions in smartd check --- bundles/smartd/metadata.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bundles/smartd/metadata.py b/bundles/smartd/metadata.py index fca64eb..3ccd720 100644 --- a/bundles/smartd/metadata.py +++ b/bundles/smartd/metadata.py @@ -1,3 +1,5 @@ +from re import search + defaults = { 'apt': { 'packages': { @@ -53,6 +55,9 @@ def zfs_disks_to_metadata(metadata): continue for disk in option['devices']: + if search(r'p([0-9]+)$', disk): + continue + disks.add(disk) return {