Skip to content

Commit

Permalink
Update existing OSs when configuring (executing) partitioning
Browse files Browse the repository at this point in the history
  • Loading branch information
rvykydal committed Aug 29, 2024
1 parent 2a671cb commit 64f81bc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
NonInteractivePartitioningTask
from pyanaconda.modules.storage.partitioning.manual.utils import \
reformat_device
from pyanaconda.modules.storage.devicetree.root import find_existing_installations
from pyanaconda.modules.storage.partitioning.interactive.utils import destroy_device
from pyanaconda.modules.storage.partitioning.automatic.utils import get_candidate_disks, \
schedule_implicit_partitions, schedule_volumes, schedule_partitions, get_pbkdf_args, \
Expand Down Expand Up @@ -113,8 +114,13 @@ def _remove_mountpoint(self, storage, mountpoint):
def _clear_partitions(self, storage):
super()._clear_partitions(storage)

roots = find_existing_installations(storage.devicetree)
log.debug("DDDDD disks %s", storage.disks)
log.debug("DDDDD roots.mounts %s", [root.mounts for root in roots])
log.debug("DDDDD storage.roots.mounts %s", [root.mounts for root in storage.roots])

storage.roots = roots

# TODO check that partitioning scheme matches - do it earlier in the
# check but also here?

Expand Down

0 comments on commit 64f81bc

Please sign in to comment.