Close #215: Write explicity what passwords are for in install

This commit is contained in:
Oliver Smith 2017-07-21 21:14:16 +02:00
parent 5651c28b41
commit 77d7ed1679
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ def format_and_mount_root(args):
if args.full_disk_encryption:
logging.info("(native) format " + device + " (root, luks), mount to " +
mountpoint)
logging.info(" *** SET FULL DISK ENCRYPTION PASSWORD ***")
pmb.chroot.root(args, ["cryptsetup", "luksFormat", "--use-urandom",
"--cipher", args.cipher, "-q", device], log=False)
pmb.chroot.root(args, ["cryptsetup", "luksOpen", device,

View File

@ -67,6 +67,7 @@ def set_user_password(args):
"""
Loop until the passwords for user and root have been changed successfully.
"""
logging.info(" *** SET LOGIN PASSWORD FOR: 'user' ***")
suffix = "rootfs_" + args.device
while True:
try: