From a75002a36d2e98d5618d88ac372fb9b5ed3575bf Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 21 Mar 2021 11:12:07 +0100 Subject: Fixed an issue where brand new disks (no partitions), got protected by a safety measurement where .keep_partitions were set to True by default. --- examples/guided.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples') diff --git a/examples/guided.py b/examples/guided.py index e9edac09..b6aa5810 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -131,6 +131,11 @@ def ask_user_questions(): elif option == 'format-all': archinstall.arguments['filesystem'] = archinstall.ask_for_main_filesystem_format() archinstall.arguments['harddrive'].keep_partitions = False + else: + # If the drive doesn't have any partitions, safely mark the disk with keep_partitions = False + # and ask the user for a root filesystem. + archinstall.arguments['filesystem'] = archinstall.ask_for_main_filesystem_format() + archinstall.arguments['harddrive'].keep_partitions = False # Get disk encryption password (or skip if blank) if not archinstall.arguments.get('!encryption-password', None): -- cgit v1.2.3-54-g00ecf