--- blivet/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/blivet/__init__.py b/blivet/__init__.py index 0f37a08..496a6ae 100644 --- a/blivet/__init__.py +++ b/blivet/__init__.py @@ -733,7 +733,8 @@ class Blivet(object): return False
# Don't clear devices holding install media. - if device.protected: + descendants = self.devicetree.getDependentDevices(device) + if device.protected or any(d.protected for d in descendants): return False
if clearPartType == CLEARPART_TYPE_LIST and \