corrected grub

main
The_miro 2025-12-12 13:37:07 +01:00
parent c5ed32d5e6
commit 268d310ff5
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ if [[ "$FIDO_ROOT" == "YES" ]]; then
# GRUB config for encrypted root # GRUB config for encrypted root
UUID=\$(blkid -s UUID -o value "${ROOT_PART}") 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 fi
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg grub-mkconfig -o /boot/grub/grub.cfg