index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds@gmail.com> | 2021-03-08 17:13:21 +0100 |
---|---|---|
committer | Anton Hvornum <anton.feeds@gmail.com> | 2021-03-08 17:13:21 +0100 |
commit | fb55e318e5dc87d05da4c636722d24ab9e9cb5b1 (patch) | |
tree | 58668a19e299c83642dda2c4e76d1ff18f87577b /examples/guided.py | |
parent | 6306de4bfee2d44ab1f362078a47d6d9a05835ef (diff) |
-rw-r--r-- | examples/guided.py | 4 |
diff --git a/examples/guided.py b/examples/guided.py index b289016b..fc1fe88d 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -281,8 +281,10 @@ 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: + if partition.allow_formatting and 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) if archinstall.arguments.get('!encryption-password', None): # First encrypt and unlock, then format the desired partition inside the encrypted part. |