From c0fcd70f99820fd13da8dacec75bd4c58c29f467 Mon Sep 17 00:00:00 2001 From: Vendula Poncova Date: Wed, 29 Nov 2023 11:18:33 +0100 Subject: [PATCH] storage: Ignore NVDIMM namespaces in a non-sector mode Don't allow to select devices that cannot be used for the installation. For example, NVDIMM in the fsdax mode prevents the system from booting. --- pyanaconda/modules/storage/initialization.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyanaconda/modules/storage/initialization.py b/pyanaconda/modules/storage/initialization.py index 0ac15ed81c0d..29a5467785d8 100644 --- a/pyanaconda/modules/storage/initialization.py +++ b/pyanaconda/modules/storage/initialization.py @@ -66,7 +66,14 @@ def enable_installer_mode(): _load_plugin_s390() # Set the device name regexes to ignore. - udev.ignored_device_names = [r'^mtd', r'^mmcblk.+boot', r'^mmcblk.+rpmb', r'^zram', '^ndblk'] + udev.ignored_device_names = [ + r'^mtd', + r'^mmcblk.+boot', + r'^mmcblk.+rpmb', + r'^zram', + r'^ndblk', + r'^pmem[0-9]+$', + ] # We need this so all the /dev/disk/* stuff is set up. udev.trigger(subsystem="block", action="change")