[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/28: system: vm: Add defaults for the Hurd.
From: |
guix-commits |
Subject: |
08/28: system: vm: Add defaults for the Hurd. |
Date: |
Sat, 23 May 2020 05:27:58 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 758315aa671defac85523e697816caeba933dfc2
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 245ecc7..59944aa 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)
#:use-module (gnu packages hurd)
@@ -305,9 +306,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
@@ -440,7 +442,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
@@ -452,7 +454,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
@@ -653,7 +655,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."
- 02/28: build: image: Add support for EXT2 and EXT3 file-systems., (continued)
- 02/28: build: image: Add support for EXT2 and EXT3 file-systems., guix-commits, 2020/05/23
- 03/28: gnu: grub: Allow "grub-bios-setup" to operate on raw disk-images., guix-commits, 2020/05/23
- 06/28: system: vm: Do not register-closures when cross-building to the Hurd., guix-commits, 2020/05/23
- 01/28: image: Add partition offset support., guix-commits, 2020/05/23
- 13/28: bootloader: grub: Add support for '<hurd-menu-entry>'., guix-commits, 2020/05/23
- 12/28: system: Add 'hurd' field to <boot-parameters>., guix-commits, 2020/05/23
- 15/28: system: Use 'hurd' package in label., guix-commits, 2020/05/23
- 04/28: system: image: Fix disk-image cross-compilation., guix-commits, 2020/05/23
- 05/28: utils: Move 'reset-timestamps' out of database., guix-commits, 2020/05/23
- 07/28: system: vm: Build vm-image using native qemu, for the Hurd., guix-commits, 2020/05/23
- 08/28: system: vm: Add defaults for the Hurd.,
guix-commits <=
- 09/28: system: hurd: Add hurd-default-essential-services., guix-commits, 2020/05/23
- 10/28: system: Add 'hurd' field to <operating-system>., guix-commits, 2020/05/23
- 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