Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-02-07 15:36:24 +0100
committerAnton Hvornum <anton@hvornum.se>2021-02-07 15:36:24 +0100
commit530edb5ece1350cbba568529cbba1f6c2eb36938 (patch)
tree1820c9a80ba9b0baf7b4063a152a69c92d5abad9 /examples
parentacf39296efd905e6b2a495468555c6b8a8976cbc (diff)
Moved the output of the current fileformat structure in guided, as well as added an option to supress the log message from format() in order to hide (for users) the some what confusing formating of /dev/null.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 384c4e17..d538d5cd 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -95,6 +95,10 @@ archinstall.storage['_guided']['harddrive'] = harddrive
if harddrive.has_partitions():
archinstall.log(f" ! {harddrive} contains existing partitions", fg='red')
+ for partition in harddrive:
+ if partition.filesystem_supported():
+ archinstall.log(f" {partition}")
+
if (option := input('Do you wish to keep existing partition setup or format the entire disk? (k/f): ')).lower() in ('k', 'keep'):
# If we want to keep the existing partitioning table
# Make sure that it's the selected drive mounted under /mnt
@@ -102,10 +106,7 @@ if harddrive.has_partitions():
if harddrive.has_mount_point(archinstall.storage['MOUNT_POINT']) is False:
raise archinstall.DiskError(f"The selected drive {harddrive} is not pre-mounted to {archinstall.storage['MOUNT_POINT']}. This is required when keeping a existing partitioning scheme.")
- archinstall.log('Using existing partition table:')
- for partition in harddrive:
- if partition.filesystem_supported():
- archinstall.log(f" {partition}")
+ archinstall.log('Using existing partition table reported above.')
else:
print('Formatting woop woop!')
exit(1)