vm: 'system-qemu-image' forces the use of i386/BIOS GRUB.

Fixes <https://bugs.gnu.org/44511>.
Reported by Maxim Cournoyer <maxim.cournoyer@gmail.com>.

* gnu/system/vm.scm (system-qemu-image): Add 'bootloader' field to OS.
This commit is contained in:
Ludovic Courtès 2020-11-10 12:20:09 +01:00
parent b51da3ccef
commit 7a20c1676a
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -655,7 +655,14 @@ (define root-uuid
'dce)))
(let* ((os (operating-system (inherit os)
(let* ((os (operating-system
(inherit os)
;; As in 'virtualized-operating-system', use BIOS-style GRUB.
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/vda")))
;; Assume we have an initrd with the whole QEMU shebang.
;; Force our own root file system. Refer to it by UUID so that