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 Aug 30, 2024
1 parent 9669e6e commit fab73b1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@ def _clear_partitions(self, storage):
# check but also here?

# TODO maybe move to _configure_partitioning? Seems safer 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.erased_mount_points:
self._erase_mountpoint(storage, mountpoint)

Expand Down

0 comments on commit fab73b1

Please sign in to comment.