From 8dbfc48847dd764fa41f647610ce7f23fc98d3a4 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Mon, 22 Jan 2024 11:06:00 +0100 Subject: [PATCH 1/2] Allow reusing existing "empty" filesystems for / We currently require that filesystem for / must be newly formatted by Anaconda, with the new storage workflow the filesystems created in Cockpit doesn't need to be reformatted so the check needs to be adjusted to check if the filesystem selected for / is empty and force the reformatting only when it contains some preexisting data. --- pyanaconda/modules/storage/checker/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyanaconda/modules/storage/checker/utils.py b/pyanaconda/modules/storage/checker/utils.py index fe0d1ed2239..7d88000c004 100644 --- a/pyanaconda/modules/storage/checker/utils.py +++ b/pyanaconda/modules/storage/checker/utils.py @@ -53,7 +53,8 @@ def verify_root(storage, constraints, report_error, report_warning): "which is required for installation of %s" " to continue.") % (get_product_name(),)) - if root and root.format.exists and root.format.mountable and root.format.mountpoint == "/": + if root and root.format.exists and root.format.mountable and root.format.mountpoint == "/" \ + and not root.format.is_empty: report_error(_("You must create a new file system on the root device.")) if storage.root_device and constraints[STORAGE_ROOT_DEVICE_TYPES]: From 6c8876ce07cb523d4964fa962666d9925077b25a Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Wed, 31 Jan 2024 14:49:56 +0100 Subject: [PATCH 2/2] Bump required version of blivet to 3.9.0 --- anaconda.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anaconda.spec.in b/anaconda.spec.in index 2e52b6c29da..e212001b92f 100644 --- a/anaconda.spec.in +++ b/anaconda.spec.in @@ -40,7 +40,7 @@ Source0: https://github.com/rhinstaller/%{name}/releases/download/%{name}-%{vers %define nmver 1.0 %define pykickstartver 3.52-1 %define pypartedver 2.5-2 -%define pythonblivetver 1:3.8.2-2 +%define pythonblivetver 1:3.9.0-1 %define rpmver 4.15.0 %define simplelinever 1.9.0-1 %define subscriptionmanagerver 1.26