Skip to content

Manual mistake #3

@kjeldonarch

Description

@kjeldonarch

Dear Rowan,
i think there is a little mistake in the manual for implementing mkinitcpio-hooks.
We shall update grub to pass certain command line arguments for tpm2_encrypt by updating in /etc/default/grub the line GRUB_CMDLINE_LINUX_DEFAULT. Your short example is as
tpm_files_part=PARTUUID=some-uuid-for-dev-sda5 cryptdevice=PARTUUID=the-uuid-of-the-luks-partition:cryptroot
But in actual run_hook in tpm2_encrypt the tpm_files_part is mounted early, before cryptdevice is decrypted (line 20-21). So i think correct command line argument for grub shall identify the external USB-device, since this is readable yet.

So i think correct would be:
tpm_files_part=PARTUUID=some-uuid-for-dev-USB cryptdevice=PARTUUID=the-uuid-of-the-luks-partition:cryptroot

Best regards, Kjeld

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions