From e4115e837ed9e48b714b17f7a1c57cc62e5f7abe Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Thu, 28 Apr 2022 13:23:06 +1200 Subject: [PATCH] Do not recognize partitions of RAIDs as full RAIDs For https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1970116 --- probert/raid.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/probert/raid.py b/probert/raid.py index 75b14e1..06e1bc7 100644 --- a/probert/raid.py +++ b/probert/raid.py @@ -112,6 +112,8 @@ def probe(context=None, report=False): raids = {} for device in sane_block_devices(context): + if device.get('DEVTYPE') != 'disk': + continue devname = device['DEVNAME'] if not os.path.basename(devname).startswith('md'): continue