Skip to content

Commit

Permalink
Avoid forcing reformat of the root filesystem if the device is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
KKoukiou committed Jan 15, 2024
1 parent a8c654b commit e8d614d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyanaconda/modules/storage/checker/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ 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 (root.format.free != root.format.total)):
report_error(_("You must create a new file system on the root device."))

if storage.root_device and constraints[STORAGE_ROOT_DEVICE_TYPES]:
Expand Down

0 comments on commit e8d614d

Please sign in to comment.