mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
Improve LUKS check and use luksUuid instead of uuid.
This commit is contained in:
parent
c83e67b421
commit
f861c13dad
3 changed files with 6 additions and 6 deletions
|
@ -100,9 +100,9 @@ def create_systemd_boot_conf(uuid, conf_path, kernel_line):
|
|||
if partition["fs"] == "linuxswap":
|
||||
swap_uuid = partition["uuid"]
|
||||
|
||||
if partition["mountPoint"] == "/" and "luksMapperName" in partition:
|
||||
if partition["mountPoint"] == "/" and partition["isLuks"]:
|
||||
cryptdevice_params = [
|
||||
"cryptdevice=UUID={!s}:{!s}".format(partition["uuid"],
|
||||
"cryptdevice=UUID={!s}:{!s}".format(partition["luksUuid"],
|
||||
partition["luksMapperName"]),
|
||||
"root=/dev/mapper/{!s}".format(partition["luksMapperName"])
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue