guix-commits
[Top][All Lists]
Advanced

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

20/21: DRAFT: system: vm: Activate the Hurd.


From: guix-commits
Subject: 20/21: DRAFT: system: vm: Activate the Hurd.
Date: Sun, 10 May 2020 10:07:42 -0400 (EDT)

janneke pushed a commit to branch wip-hurd-vm
in repository guix.

commit 3e632091f00c247736f774d8d2ceee1e8316b7ff
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Wed May 6 10:10:59 2020 +0200

    DRAFT: system: vm: Activate the Hurd.
    
    * gnu/system/vm.scm (system-qemu-image): Add boot-activation.
---
 gnu/system/vm.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 33e1c18..f305f42 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -657,6 +657,11 @@ of the GNU system as described by OS."
                              (with-parameters ((%current-target-system target))
                                hurd)
                              hurd)))
+         (boot-activation (and hurd (operating-system-activation-script os)))
+         (boot-activation (and hurd (if target
+                                   (with-parameters ((%current-target-system 
target))
+                                     boot-activation)
+                                   boot-activation)))
          (hurd-directives (if hurd
                               `((directory "/servers")
                                 ,@(map (lambda (server)
@@ -664,7 +669,9 @@ of the GNU system as described by OS."
                                        '("startup" "exec" "proc" "password"
                                          "default-pager" "crash-dump-core"
                                          "kill" "suspend"))
-                                ("/hurd" -> ,(file-append hurd "/hurd")))
+                                ("/hurd" -> ,(file-append hurd "/hurd"))
+                                (directory "/boot")
+                                ("/boot/activation" -> ,boot-activation))
                               '())))
     (qemu-image  #:os os
                  #:bootcfg-drv bootcfg



reply via email to

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