diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-10-19 23:11:36 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-10-19 23:21:49 +0200 |
commit | 9b396c0cabb086746cbe4ec20d4ae0d79962d758 (patch) | |
tree | 53a3cfca7b6e3dd3e1eada7ccda48358021d394a /gnu/system/vm.scm | |
parent | b11962067b9337c65da499af0dfd48b08915d757 (diff) | |
download | guix-9b396c0cabb086746cbe4ec20d4ae0d79962d758.tar.gz |
vm: Always use GRUB/i386.
Fixes <https://bugs.gnu.org/28768>. Reported by Oleg Pykhalov <go.wigust@gmail.com>. * gnu/system/vm.scm (virtualized-operating-system): Override the 'bootloader' field.
Diffstat (limited to 'gnu/system/vm.scm')
-rw-r--r-- | gnu/system/vm.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index 273a895bef..3127b305e1 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -49,7 +49,7 @@ #:use-module (gnu packages admin) #:use-module (gnu bootloader) - #:use-module ((gnu bootloader grub) #:select (grub-mkrescue-bootloader)) + #:use-module (gnu bootloader grub) #:use-module (gnu system shadow) #:use-module (gnu system pam) #:use-module (gnu system linux-initrd) @@ -565,6 +565,14 @@ environment with the store shared with the host. MAPPINGS is a list of user-file-systems))) (operating-system (inherit os) + + ;; XXX: Until we run QEMU with UEFI support (with the OVMF firmware), + ;; force the traditional i386/BIOS method. + ;; See <https://bugs.gnu.org/28768>. + (bootloader (bootloader-configuration + (bootloader grub-bootloader) + (target "/dev/vda"))) + (initrd (lambda (file-systems . rest) (apply base-initrd file-systems #:volatile-root? #t |