Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-03-09 11:44:17 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-03-09 11:44:17 +0100
commit586f8bc32ef81695f31f10f41472443ad5f280cd (patch)
tree992b50e4fe584e0c7beb49ce1f6a0396d5b4eaff
parent3b849ca07462dd80734373b3428cd0e128812f60 (diff)
Adding enforcement to select a filesystem-type for encrypted volumes unless the specified pasword can be used to unlock the device and auto-detect this.
-rw-r--r--examples/guided.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 722e1e36..3f57ec88 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -137,6 +137,12 @@ if archinstall.arguments['harddrive'].has_partitions():
while 1:
new_filesystem = input(f"Enter a valid filesystem for {partition} (leave blank for {partition.filesystem}): ").strip(' ')
if len(new_filesystem) <= 0:
+ if partition.encrypted and partition.filesystem == 'crypto_LUKS':
+ if (autodetected_filesystem := partition.detect_inner_filesystem(archinstall.arguments.get('!encryption-password', None))):
+ else:
+ archinstall.log(f"Could not auto-detect the filesystem inside the encrypted volume.", fg='red')
+ archinstall.log(f"A filesystem must be defined for the unlocked encrypted partition.")
+ continue
break
# Since the potentially new filesystem is new