Skip to content

Commit

Permalink
home reuse: require removing of bootloader partition explicitly
Browse files Browse the repository at this point in the history
But handle efi vs biosboot etc automagically.
  • Loading branch information
rvykydal committed Oct 8, 2024
1 parent c537502 commit 5becb54
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,11 @@ def _clear_partitions(self, storage):
# TODO check that partitioning scheme matches - do it earlier in the
# check but also here?

self._remove_bootloader_partitions(storage)
for mountpoint in self._request.removed_mount_points:
self._remove_mountpoint(storage, mountpoint)
if mountpoint == "bootloader":
self._remove_bootloader_partitions(storage)
else:
self._remove_mountpoint(storage, mountpoint)
for mountpoint in self._request.reformatted_mount_points:
self._reformat_mountpoint(storage, mountpoint)

Expand Down

0 comments on commit 5becb54

Please sign in to comment.