Skip to content

Commit

Permalink
Do not write LVM devices file during image installation
Browse files Browse the repository at this point in the history
Follow up for rhinstaller#5325 which disables the LVM devices file usage on
blivet side but we also need to skip writing the file when
writing the storage configuration post install.

Resolves: rhbz#2247872
  • Loading branch information
vojtechtrefny committed Feb 21, 2024
1 parent c051c6c commit e3a25eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyanaconda/modules/storage/installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ def _write_lvm_devices_file(storage, sysroot):
:param Blivet storage: instance of Blivet or a subclass
:param str sysroot: path to the target OS installation
"""
if conf.target.is_image:
return

if not HAVE_LVMDEVICES:
return

Expand Down

0 comments on commit e3a25eb

Please sign in to comment.