From 8bf3296749ebfddc5dfdcbb116547395438d371f Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 8 Mar 2021 17:14:21 +0100 Subject: Optimization, safe_to_format() now checks partition.allow_formatting as a condition. --- examples/guided.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/guided.py') diff --git a/examples/guided.py b/examples/guided.py index fc1fe88d..fbdba776 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -281,7 +281,7 @@ with archinstall.Filesystem(archinstall.arguments['harddrive'], archinstall.GPT) fs.use_entire_disk(archinstall.arguments.get('filesystem', 'ext4')) else: for partition in archinstall.arguments['harddrive']: - if partition.allow_formatting and partition.safe_to_format(): + if partition.safe_to_format(): partition.format() else: archinstall.log(f"Did not format {partition} because .safe_to_format() returned False or .allow_formatting was False", level=archinstall.LOG_LEVELS.Debug) -- cgit v1.2.3-70-g09d2