From 775a26f738002ad124200716b68f92ebc9e91a5c Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 8 Mar 2021 14:47:24 +0100 Subject: Added a abort message --- examples/guided.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples/guided.py') diff --git a/examples/guided.py b/examples/guided.py index 2b49d88a..0077b505 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -114,7 +114,10 @@ if archinstall.arguments['harddrive'].has_partitions(): archinstall.log(f" {partition} (Filesystem not supported)", fg='red') # We then ask what to do with the paritions. - if (option := archinstall.ask_for_disk_layout()) == 'keep-existing': + if (option := archinstall.ask_for_disk_layout()) == 'abort': + archinstall.log(f"Safely aborting the installation. No changes to the disk or system has been made.") + exit(1) + elif option == 'keep-existing': archinstall.arguments['harddrive'].keep_partitions = True archinstall.log(f" ** You will now select which partitions to use by selecting mount points (inside the installation). **") -- cgit v1.2.3-70-g09d2