corrected grub
parent
c5ed32d5e6
commit
268d310ff5
|
|
@ -133,7 +133,7 @@ if [[ "$FIDO_ROOT" == "YES" ]]; then
|
|||
|
||||
# GRUB config for encrypted root
|
||||
UUID=\$(blkid -s UUID -o value "${ROOT_PART}")
|
||||
sed -i "s|GRUB_CMDLINE_LINUX=.*|GRUB_CMDLINE_LINUX=\"cryptdevice=UUID=\$UUID:cryptroot root=/dev/mapper/cryptroot\"|" /etc/default/grub
|
||||
sed -i "s|GRUB_CMDLINE_LINUX=.*|GRUB_CMDLINE_LINUX=\"rd.luks.name=$UUID=cryptroot rd.luks.options=fido2-device=auto root=/dev/mapper/cryptroot\"|" /etc/default/grub
|
||||
fi
|
||||
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
|
|
|||
Loading…
Reference in New Issue