[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/24: system: vm: Add defaults for the Hurd.
From: |
guix-commits |
Subject: |
04/24: system: vm: Add defaults for the Hurd. |
Date: |
Sun, 17 May 2020 06:00:49 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit eab0fdb2d9f534b66d07e50f848415006fd084f1
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Sat Apr 25 23:13:09 2020 +0200
system: vm: Add defaults for the Hurd.
* gnu/system/vm.scm (qemu-image): Add default parameter values for the Hurd,
and avoid grub-efi.
(system-qemu-image): When building for the Hurd, use appropriete
file-system-type.
---
gnu/system/vm.scm | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index aa094b0..a803977 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -50,6 +50,7 @@
#:use-module (gnu packages virtualization)
#:use-module (gnu packages disk)
#:use-module (gnu packages zile)
+ #:use-module (gnu packages hurd)
#:use-module (gnu packages linux)
#:use-module (gnu packages admin)
@@ -289,9 +290,10 @@ substitutable."
(qemu qemu-minimal)
(disk-image-size 'guess)
(disk-image-format "qcow2")
- (file-system-type "ext4")
- (file-system-options '())
- (device-nodes 'linux)
+ (file-system-type (if (hurd-target?) "ext2" "ext4"))
+ (file-system-options
+ (if (hurd-target?) '("-o" "hurd") '()))
+ (device-nodes (if (hurd-target?) 'hurd 'linux))
(extra-directives '())
file-system-label
file-system-uuid
@@ -420,7 +422,7 @@ system that is passed to 'populate-root-file-system'."
;; FIXME: ‘target-arm?’ may be not operate on the right
;; system/target values. Rewrite using ‘let-system’ when
;; available.
- (if #$(target-arm?)
+ (if #$(or (hurd-target?) (target-arm?))
'()
(list (partition
;; The standalone grub image is about 10MiB,
but
@@ -432,7 +434,7 @@ system that is passed to 'populate-root-file-system'."
;; on file system size (16 in this case).
(file-system "vfat")
(flags '(esp)))))))
- (grub-efi #$(and (not (target-arm?)) grub-efi)))
+ (grub-efi #$(and (not (hurd-target?)) (not (target-arm?))
grub-efi)))
(initialize-hard-disk "/dev/vda"
#:partitions partitions
#:grub-efi grub-efi
@@ -629,7 +631,7 @@ substitutable."
(define* (system-qemu-image os
#:key
- (file-system-type "ext4")
+ (file-system-type (if (hurd-target?) "ext2"
"ext4"))
(disk-image-size (* 900 (expt 2 20))))
"Return the derivation of a freestanding QEMU image of DISK-IMAGE-SIZE bytes
of the GNU system as described by OS."
- 12/24: system: examples: Add bare-hurd.tmpl., (continued)
- 12/24: system: examples: Add bare-hurd.tmpl., guix-commits, 2020/05/17
- 14/24: system: Add `hurd-activation'., guix-commits, 2020/05/17
- 17/24: services: Add `hurd-console-service-type'., guix-commits, 2020/05/17
- 18/24: services: Add `hurd-getty-service-type'., guix-commits, 2020/05/17
- 19/24: system: hurd: Populate services., guix-commits, 2020/05/17
- 20/24: DRAFT: system: vm: Activate the Hurd., guix-commits, 2020/05/17
- 21/24: system: bare-hurd.tmpl: Add openssh client and service., guix-commits, 2020/05/17
- 22/24: gnu: linux-libre: Add support for gnu.* namespace., guix-commits, 2020/05/17
- 23/24: gnu: hurd: Update to upstream Hurd-reserved xattr index., guix-commits, 2020/05/17
- 06/24: system: Add 'hurd' field to <operating-system>., guix-commits, 2020/05/17
- 04/24: system: vm: Add defaults for the Hurd.,
guix-commits <=
- 10/24: system: vm: Initial vm-image support for the Hurd., guix-commits, 2020/05/17
- 15/24: services: hurd: Use activation-service, hurd-etc-service., guix-commits, 2020/05/17
- 24/24: system: hurd: Remove bash from boot process., guix-commits, 2020/05/17