grazzolini / mkinitcpio-chkcryptoboot

Archlinux mkinitcpio hook to check if the bootloader was modified and warn the user to not enter his root device password
BSD 3-Clause "New" or "Revised" License
27 stars 3 forks source link

Install hook fails if the EFI stub location contains space #9

Closed ranolfi closed 5 years ago

ranolfi commented 7 years ago

My bootloader ID is "Arch Linux".

This is how I configured my chkcryptoboot.conf file:

EFISTUB=/boot/efi/EFI/Arch\ Linux/grubx64.efi

But when running mkinitcpio, the chkcryptoboot hook will fail with this error in line 39:

[: too many arguments

I solved this by surrounding $EFISTUB with double quotes in lines 39 and 49 of file install/chkcryptoboot.

grazzolini commented 5 years ago

This is a bug, I have just fixed this on #15 and a new release of chkcryptoboot will contain this.