Skip to content

Commit

Permalink
Merge pull request #1326 from vojtechtrefny/main_mpath-friendly-names…
Browse files Browse the repository at this point in the history
…-catch

Ignore errors when setting multipath friendly names
  • Loading branch information
vojtechtrefny authored Dec 14, 2024
2 parents 6488693 + ba7eef3 commit 29d9d4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion blivet/populator/populator.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,10 @@ def _populate(self):
self.drop_device_info_cache()

if flags.auto_dev_updates and availability.BLOCKDEV_MPATH_PLUGIN.available:
blockdev.mpath.set_friendly_names(flags.multipath_friendly_names)
try:
blockdev.mpath.set_friendly_names(flags.multipath_friendly_names)
except blockdev.MpathError as e:
log.error("Failed to set mpath friendly names: %s", str(e))

self.setup_disk_images()

Expand Down

0 comments on commit 29d9d4d

Please sign in to comment.