guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/05: vm: Always use GRUB/i386.


From: Ludovic Courtès
Subject: 01/05: vm: Always use GRUB/i386.
Date: Thu, 19 Oct 2017 17:21:57 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 9b396c0cabb086746cbe4ec20d4ae0d79962d758
Author: Ludovic Courtès <address@hidden>
Date:   Thu Oct 19 23:11:36 2017 +0200

    vm: Always use GRUB/i386.
    
    Fixes <https://bugs.gnu.org/28768>.
    Reported by Oleg Pykhalov <address@hidden>.
    
    * gnu/system/vm.scm (virtualized-operating-system): Override the
    'bootloader' field.
---
 gnu/system/vm.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 273a895..3127b30 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]