~ruther/guix-local

46fc9a7e0d50251a720e6cf0d51bb28e8bf7266b — Ricardo Wurmus 8 years ago f6d259b
gnu: Pass "--target=i386-pc" when installing GRUB for legacy BIOS.

* gnu/bootloader/grub.scm (install-grub): Add "--target=i386-pc" to the list
of arguments to "grub-install".

Fixes <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30311>.
1 files changed, 1 insertions(+), 1 deletions(-)

M gnu/bootloader/grub.scm
M gnu/bootloader/grub.scm => gnu/bootloader/grub.scm +1 -1
@@ 386,7 386,7 @@ submenu \"GNU system, old configurations...\" {~%")
        ;; root partition.
        (setenv "GRUB_ENABLE_CRYPTODISK" "y")

        (unless (zero? (system* grub "--no-floppy"
        (unless (zero? (system* grub "--no-floppy" "--target=i386-pc"
                                "--boot-directory" install-dir
                                device))
          (error "failed to install GRUB (BIOS)")))))