Skip to content

Usage: Always dropped into emergency shell #4

@stratus-ss

Description

@stratus-ss

First off, I 100% know this is my issue, I am just not understanding the requirements correctly.

After generating the EFI image and putting it in place I get prompted for my password on system boot. ZFSBootmenu loads as normal and hands off to the OS. However, no matter what variation I try I end up either
A) Not unlocking the volume
B) Get an error that the keyfile is not found and it drops back to the password
C) I get a password prompt without trying the keyfile

I note that when I get dropped into the emergency shell the file is indeed created at /etc/cryptsetup-keys.d/luks-$UUID.key
This I have tried:

  1. Setting the bootoptions with keyfile:
zroot/ROOT/default  org.zfsbootmenu:commandline  ZFS=zroot rw cryptdevice=UUID=9471eed2-09f4-4f2d-9323-9ac4b814c4b4:cryptroot cryptkey=/etc/cryptsetup-keys.d/luks-9471eed2-09f4-4f2d-9323-9ac4b814c4b4.key  local

This causes me to get prompted for the password after the keyfile fails

  1. setting without the keyfile
    This is the same as above but ommitting the cryptkey option

  2. Setting the /etc/crypttab

cryptroot UUID=9471eed2-09f4-4f2d-9323-9ac4b814c4b4 /etc/cryptsetup-keys.d/luks-9471eed2-09f4-4f2d-9323-9ac4b814c4b4.key luks

I'm not exactly sure what I am doing wrong and was hoping to get some guidance.

Thank you

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