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:03:32 +0100
committerAnton Hvornum <anton@hvornum.se>2021-02-07 15:03:32 +0100
commitd527e215fce1da04e07556d2dbe787e16dba550b (patch)
treebc7e4af2366e5b48594c7e03ec59f41930455a8a /examples
parent826119bb998789a8db8c2b96cfd2cd443b41bbae (diff)
Added some log outputs for existing drives.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/guided.py b/examples/guided.py
index ac1e7fe2..d6029f46 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -101,6 +101,10 @@ if harddrive.has_partitions():
# That way, we can rely on genfstab and some manual post-installation steps.
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:
+ archinstall.log(f" {partition}")
else:
print('Formatting woop woop!')
exit(1)