[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/28: system: vm: Initial vm-image support for the Hurd.
From: |
guix-commits |
Subject: |
14/28: system: vm: Initial vm-image support for the Hurd. |
Date: |
Sat, 23 May 2020 05:28:00 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 75926c48c655865e3fbd590ffb48e051710c7648
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Thu Apr 30 15:40:26 2020 +0200
system: vm: Initial vm-image support for the Hurd.
* gnu/system/vm.scm (system-qemu-image): When building for the Hurd, add
hurd-directives.
---
gnu/system/vm.scm | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 59944aa..151cf62 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -688,16 +688,31 @@ of the GNU system as described by OS."
(device root-uuid)
(type file-system-type))
file-systems-to-keep))))
- (bootcfg (operating-system-bootcfg os)))
+ (bootcfg (operating-system-bootcfg os))
+ (bootloader (bootloader-configuration-bootloader
+ (operating-system-bootloader os)))
+ (hurd (operating-system-hurd os))
+ (hurd-directives (if hurd
+ `((directory "/servers")
+ ,@(map (lambda (server)
+ `(file ,(string-append "/servers/"
server)))
+ '("startup" "exec" "proc" "password"
+ "default-pager" "crash-dump-core"
+ "kill" "suspend"))
+ ("/hurd" -> ,(file-append hurd "/hurd"))
+ ;; XXX remove ttys after adding hurd-getty
service
+ (directory "/etc")
+ ("/etc/ttys" -> ,(file-append hurd
"/etc/ttys")))
+ '())))
(qemu-image #:os os
#:bootcfg-drv bootcfg
- #:bootloader (bootloader-configuration-bootloader
- (operating-system-bootloader os))
+ #:bootloader bootloader
#:disk-image-size disk-image-size
#:file-system-type file-system-type
#:file-system-uuid root-uuid
#:inputs `(("system" ,os)
("bootcfg" ,bootcfg))
+ #:extra-directives hurd-directives
#:copy-inputs? #t)))
- 11/28: bootloader: Add `<hurd-menu-entry>'., (continued)
- 11/28: bootloader: Add `<hurd-menu-entry>'., guix-commits, 2020/05/23
- 17/28: services: hurd: Add `hurd-etc-service'., guix-commits, 2020/05/23
- 24/28: DRAFT: system: vm: Activate the Hurd., guix-commits, 2020/05/23
- 27/28: gnu: hurd: Update to upstream Hurd-reserved xattr index., guix-commits, 2020/05/23
- 18/28: system: Add `hurd-activation'., guix-commits, 2020/05/23
- 26/28: gnu: linux-libre: Add support for gnu.* namespace., guix-commits, 2020/05/23
- 19/28: services: hurd: Use activation-service, hurd-etc-service., guix-commits, 2020/05/23
- 21/28: services: Add `hurd-console-service-type'., guix-commits, 2020/05/23
- 22/28: services: Add `hurd-getty-service-type'., guix-commits, 2020/05/23
- 23/28: system: hurd: Populate services., guix-commits, 2020/05/23
- 14/28: system: vm: Initial vm-image support for the Hurd.,
guix-commits <=
- 16/28: system: examples: Add bare-hurd.tmpl., guix-commits, 2020/05/23
- 20/28: gnu: hurd: Create minimal "runsystem" script to invoke "rc"., guix-commits, 2020/05/23
- 28/28: system: hurd: Remove bash from boot process., guix-commits, 2020/05/23
- 25/28: system: bare-hurd.tmpl: Add openssh client and service., guix-commits, 2020/05/23