fix automatic encryption
This commit is contained in:
parent
d3d20cac40
commit
0d23345c03
@ -1,4 +1,4 @@
|
||||
pikainstall (1.1.6-100pika4) pikauwu; urgency=medium
|
||||
pikainstall (1.1.6-100pika5) pikauwu; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
||||
|
@ -154,9 +154,7 @@ if root_uuid != home_uuid:
|
||||
print("Home Encryption UUID: {}".format(home_uuid_encrypt))
|
||||
print("Home Encryption Mapped Device Name: {}".format(home_name_encrypt))
|
||||
if args.cryptkey is not None:
|
||||
home_passwd = args.cryptkey
|
||||
elif args.manual is not None:
|
||||
home_passwd = None
|
||||
home_passwd = args.cryptkey[0]
|
||||
else:
|
||||
## Ask user for Home luks partition password for the key-filing process
|
||||
print("\nPlease enter the LUKS password for the device" + home_part_encrypt + " :")
|
||||
@ -220,7 +218,7 @@ if root_part_encrypt != "luks_none":
|
||||
file.write(albius_crypttab_root_file)
|
||||
|
||||
# Write crypttab script if system has encryption
|
||||
if root_uuid != home_uuid and args.manual is None :
|
||||
if root_uuid != home_uuid and args.manual is None and home_passwd is not None :
|
||||
if home_part_encrypt != "luks_none":
|
||||
subprocess.run(['touch', '/tmp/pika-installer-gtk4-status-crypt.txt'])
|
||||
CRYPTTAB_FILE_PATH = '/var/albius-crypttab.sh'
|
||||
|
Loading…
Reference in New Issue
Block a user