0

I try to install Grub manually after Devuan installation, but I guess there is an error in configuration.

/etc/default/grub
GRUB_CMDLINE_LINUX=”cryptdevice=/dev/sda5:devuan-root:allow-discard”
GRUB_ENABLE_CRYPTODISK=yes

I boot from CD

cryptsetup luksOpen /dev/sda5 somename
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt/
grub-install --target=i386-pc /dev/sda

But after entering passphrase I receive

invalid passphrase 
no such cryptodisk found
disk ‘lvmid/..............’ not found
3
  • I rolled back a number of edits to the question which added a solution. If you have found a solution to your issue, then please post it as an answer by using the "Your Answer" box at the bottom of the page. Commented Aug 20 at 4:19
  • There was an answer in the post and you just removed it instead of asking to move it to another place. Commented Aug 21 at 0:33
  • Exactly, because the question text was not the place to put an answer. And I did ask you to move it (to post it as an answer instead). If you want to copy it, it's obviously still available in the revision history. See, e.g., the revision before the roll-back. Commented Aug 21 at 4:11

1 Answer 1

1

GRUB 2.12 doesn't support decrypting an ARGON2ID keyslot; it will say invalid passphrase. Convert keyslot to PBKDF2 format:

cryptsetup luksConvertKey --pbkdf pbkdf2

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.