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.feeds@gmail.com>2021-02-17 12:06:15 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-02-17 12:06:15 +0100
commit10f0567ead96655b933598bfb7729b18956ef4dc (patch)
treefd4bb167016f4eb10feb615fcb758244dde7e674 /examples
parent76d3976df6d148e31a0aab04037a7c191b4054fe (diff)
Adding filesystem selection for partitions
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/examples/guided.py b/examples/guided.py
index abbecd3a..315be0d0 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -121,14 +121,18 @@ if archinstall.arguments['harddrive'].has_partitions():
archinstall.log(f" ** You will now select where (inside the installation) to mount partitions. **")
archinstall.log(f" ** The root would be a simple / and the boot partition /boot as it's relative paths. **")
while True:
- partition = archinstall.generic_select(partition_mountpoints.keys(), "Select a partition to assign mount-point to: ")
+ partition = archinstall.generic_select(partition_mountpoints.keys(), "Select a partition to assign mount-point to (leave blank when done): ")
if not partition:
break
- mountpoint = input(f"Select a mount-point for {partition}: ")
- #partition.mountpoint = mountpoint
- partition.allow_formatting = True
- partition.target_mountpoint = mountpoint
+ mountpoint = input(f"Enter a mount-point for {partition}: ").strip(' ')
+ new_filesystem = input(f"Enter a valid filesystem for {partition} (leave blank for {partition.filesystem}): ").strip(' ')
+
+ if len(mountpoint):
+ partition.allow_formatting = True
+ partition.target_mountpoint = mountpoint
+ if len(new_filesystem):
+ partition.filesystem = new_filesystem
archinstall.log('Using existing partition table reported above.')
else: