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 Sep 3, 2024
1 parent 47168d9 commit 56b53e6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,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 56b53e6

Please sign in to comment.