(as previous) Use False/True rather than ""/"yes" for
keeping track of does-the-system-use-lvm2.
"""
swap_uuid = ""
uses_btrfs = False
- lvm2 = ""
+ uses_lvm2 = False
hooks = ["base", "udev", "autodetect", "modconf", "block", "keyboard",
"keymap"]
modules = []
uses_btrfs = True
if "lvm2" in partition["fs"]:
- lvm2 = "yes"
+ uses_lvm2 = True
if partition["mountPoint"] == "/" and "luksMapperName" in partition:
encrypt_hook = True
):
files.append("/crypto_keyfile.bin")
- if lvm2:
+ if uses_lvm2:
hooks.append("lvm2")
if swap_uuid != "":