From e3a25eb5af88987da8681b831d39447b7958f73c Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Wed, 21 Feb 2024 10:06:35 +0100 Subject: [PATCH] Do not write LVM devices file during image installation Follow up for #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 --- pyanaconda/modules/storage/installation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyanaconda/modules/storage/installation.py b/pyanaconda/modules/storage/installation.py index 3e728849bd80..472b8b2009b8 100644 --- a/pyanaconda/modules/storage/installation.py +++ b/pyanaconda/modules/storage/installation.py @@ -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