mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
Fixed pep8-whining in module luksbootkeyfile
Based on PR 736 (so add Alf to copyright as well)
This commit is contained in:
parent
3804e4df68
commit
0b1577ace4
1 changed files with 8 additions and 6 deletions
|
@ -25,10 +25,10 @@ from libcalamares.utils import check_target_env_call
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
"""
|
"""
|
||||||
This module sets up a file crypto_keyfile.bin on the rootfs, assuming the rootfs
|
This module sets up a file crypto_keyfile.bin on the rootfs, assuming the
|
||||||
is LUKS encrypted and a passphrase is provided. This file is then included in the
|
rootfs is LUKS encrypted and a passphrase is provided. This file is then
|
||||||
initramfs and used for unlocking the rootfs from a previously unlocked GRUB2
|
included in the initramfs and used for unlocking the rootfs from a
|
||||||
session.
|
previously unlocked GRUB2 session.
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -52,8 +52,10 @@ def run():
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if not luks_root_passphrase:
|
if not luks_root_passphrase:
|
||||||
return ("Encrypted rootfs setup error",
|
return (
|
||||||
"Rootfs partition {!s} is LUKS but no passphrase found.".format(luks_root_device))
|
"Encrypted rootfs setup error",
|
||||||
|
"Rootfs partition {!s} is LUKS but no passphrase found."
|
||||||
|
.format(luks_root_device))
|
||||||
|
|
||||||
# Generate random keyfile
|
# Generate random keyfile
|
||||||
check_target_env_call(["dd",
|
check_target_env_call(["dd",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue