Skip to content

Commit 7544dc0

Browse files
committed
main: Do not allow resizing recoveryOS partition
This was only ever sort-of allowed in expert mode, since otherwise it never meets the space requirements, but let's make sure to block it altogether. Signed-off-by: Hector Martin <[email protected]>
1 parent ee2827c commit 7544dc0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,10 @@ def get_min_free_space(self, p):
550550

551551
def can_resize(self, p):
552552
logging.info(f"Checking resizability of {p.name}")
553+
if p.type != "Apple_APFS":
554+
logging.info(f" Not APFS or system container")
555+
return False
556+
553557
if p.container is None:
554558
logging.info(f" No container?")
555559
return False

0 commit comments

Comments
 (0)