Open n8henrie opened 2 weeks ago
Replicated on NixOS after https://github.com/NixOS/nixpkgs/issues/346504
# NIXOS_INSTALL_BOOTLOADER=1 ./result/bin/switch-to-configuration boot
updating GRUB 2 menu...
installing the GRUB 2 boot loader into /boot/efi...
Installing for arm64-efi platform.
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/nix/store/45ivfj6b8zn64imilvvfg8s52kvc0afq-install-grub.pl: installation of GRUB EFI into /boot/efi failed:
No such file or directory
Failed to install bootloader
Describe the bug
This is a rehash of the issue I banged my head against last year: https://discourse.nixos.org/t/nixos-install-and-nixos-enter-chroot-failed-to-run-command-nix-var-nix-profiles-system-activate-no-such-file-or-directory/32071
In short, grub2 from an x86_64 nixos host segfaults when trying to install an EFI bootloader to a aarch64-linux system.
Steps To Reproduce
Steps to reproduce the behavior:
I initially encountered when trying to
nixos-install
from an arch linux x86_64 host, but I thought the segfault might be due to a problem with binfmt_misc on Arch, so I tried with NixOS but ran into a similar crash. I think easiest to reproduce:Expected behavior
Grub installation succeeds
Additional context
As linked above, I've had a super painful time trying to fix bootloaders on arm64 systems from x86 nixos hosts.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.