Remove luks auto-key jazz since I can't make it work
This commit is contained in:
parent
7bd4a6fbe5
commit
6e7fa798ad
|
@ -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 ...")
|
||||
|
|
Loading…
Reference in New Issue