Unlocking encrypted root with SSH #454
Answered
by
ahesford
emad-elsaid
asked this question in
Questions
-
I have the following setup :
I understand that there is a way to remove that second passphrase prompt it was mentioned inside the mkdir -p -m 700 /etc/zfs/keys
cp passwordfile /etc/zfs/keys/rpool.key
zfs change-key \
-o keylocation=file:///etc/zfs/keys/rpool.key \
-o keyformat=passphrase rpool
update-initramfs -u
chmod go= /boot I followed it for my system (Archlinux) as follows mkdir -p -m 700 /etc/zfs/keys
echo "password" > /etc/zfs/keys/rpool.key
zfs change-key \
-o keylocation=file:///etc/zfs/keys/rpool.key \
-o keyformat=passphrase rpool
mkinitcpio -P
|
Beta Was this translation helpful? Give feedback.
Answered by
ahesford
Jul 24, 2023
Replies: 1 comment 1 reply
-
You probably forgot to add |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
emad-elsaid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You probably forgot to add
/etc/zfs/keys/rpool.key
to theFILES
array in/etc/mkinitcpio.conf
.