nixos/grub: Refactor install-grub.pl and correct perl syntax
tests/installer: Add btrfs tests for grub and nixos-generate-config
debug output for grub.cfg