Skip to content

Commit

Permalink
storage: Ignore NVDIMM namespaces in a non-sector mode
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
poncovka committed Nov 29, 2023
1 parent 4aefc02 commit c0fcd70
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pyanaconda/modules/storage/initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c0fcd70

Please sign in to comment.