[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/35: system: image: Fix image-with-os.
From: |
guix-commits |
Subject: |
15/35: system: image: Fix image-with-os. |
Date: |
Thu, 28 May 2020 13:03:31 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit a89abadb0ecc8472633f2f12f6da6dea06ce5024
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Sat May 23 19:10:07 2020 +0200
system: image: Fix image-with-os.
* gnu/system/image.scm (image-with-os): Do not reorder partitions, as we
want
them to be created according to definition order.
---
gnu/system/image.scm | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/gnu/system/image.scm b/gnu/system/image.scm
index a706f87..97124a4 100644
--- a/gnu/system/image.scm
+++ b/gnu/system/image.scm
@@ -424,18 +424,18 @@ to OS. Also set the UUID and the size of the root
partition."
(string=? (file-system-mount-point fs) "/"))
(operating-system-file-systems os)))
- (let*-values (((partitions) (image-partitions base-image))
- ((root-partition other-partitions)
- (srfi-1:partition root-partition? partitions)))
- (image
- (inherit base-image)
- (operating-system os)
- (partitions
- (cons (partition
- (inherit (car root-partition))
- (uuid (file-system-device root-file-system))
- (size (root-size base-image)))
- other-partitions)))))
+ (image
+ (inherit base-image)
+ (operating-system os)
+ (partitions
+ (map (lambda (p)
+ (if (root-partition? p)
+ (partition
+ (inherit p)
+ (uuid (file-system-device root-file-system))
+ (size (root-size base-image)))
+ p))
+ (image-partitions base-image)))))
(define (operating-system-for-image image)
"Return an operating-system based on the one specified in IMAGE, but
- branch wip-hurd-vm created (now dbdce6e), guix-commits, 2020/05/28
- 01/35: system: 'system-linux-image-file-name' takes an optional parameter., guix-commits, 2020/05/28
- 02/35: vm: 'expression->derivation-in-linux-vm' always returns a native build., guix-commits, 2020/05/28
- 07/35: gnu: guile-static: Disable JIT on ARMv7., guix-commits, 2020/05/28
- 05/35: vm: <virtual-machine> compiler honors system and target., guix-commits, 2020/05/28
- 06/35: vm: Shared-store script runs that native QEMU and Bash., guix-commits, 2020/05/28
- 13/35: system: image: Correct genimage configuration file indentation., guix-commits, 2020/05/28
- 14/35: image: Use grub-efi to install the EFI bootloader., guix-commits, 2020/05/28
- 17/35: image: Add Hurd support., guix-commits, 2020/05/28
- 15/35: system: image: Fix image-with-os.,
guix-commits <=
- 18/35: linux-boot: Update 'make-hurd-device-nodes'., guix-commits, 2020/05/28
- 03/35: vm: 'qemu-image' uses the native partitioning tools and bootloader., guix-commits, 2020/05/28
- 08/35: gnu: hurd: Update to upstream Hurd-reserved xattr index., guix-commits, 2020/05/28
- 09/35: bootloader: Add 'disk-image-installer'., guix-commits, 2020/05/28
- 16/35: image: Do not use VM to create disk-images., guix-commits, 2020/05/28
- 21/35: system: Add 'hurd' field to <operating-system>., guix-commits, 2020/05/28
- 23/35: system: Add 'multiboot-modules' field to <boot-parameters>., guix-commits, 2020/05/28
- 25/35: system: Use 'hurd' package in label., guix-commits, 2020/05/28
- 26/35: system: examples: Add bare-hurd.tmpl., guix-commits, 2020/05/28
- 29/35: services: hurd: Use activation-service, hurd-etc-service., guix-commits, 2020/05/28