Remove luks auto-key jazz since I can't make it work

This commit is contained in:
Fierelier 2023-12-27 21:04:45 +01:00
parent 7bd4a6fbe5
commit 6e7fa798ad
1 changed files with 1 additions and 11 deletions

View File

@ -384,19 +384,9 @@ def main():
fh.write('GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX cryptdevice=UUID=' +cryptPartitionUUID+ ' root=UUID=' +installPartitionUUID+ '"\n')
fh.close()
print("Writing luks auto-key ...")
fh = open(ipth(".luks-key"),"w")
fh.write(randomString(64,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"))
fh.close()
os.chmod(ipth(".luks-key"),600)
proc = subprocess.Popen(["cryptsetup","luksAddKey",ipth(".luks-key")],stdin=subprocess.PIPE)
proc.stdin.write((mainPass + "\n").encode("utf-8"))
proc.stdin.flush()
checkProc(proc)
print("Writing crypttab ...")
fh = open(ipth("etc/crypttab"),"w")
fh.write('system UUID=' +cryptPartitionUUID+ ' /.luks-key luks\n')
fh.write('system UUID=' +cryptPartitionUUID+ ' none luks\n')
fh.close()
print("Writing fstab ...")