[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#44169] [PATCH 3/3] installer: Use UUIDs in the 'swap-devices' field
From: |
Ludovic Courtès |
Subject: |
[bug#44169] [PATCH 3/3] installer: Use UUIDs in the 'swap-devices' field. |
Date: |
Fri, 23 Oct 2020 12:07:54 +0200 |
Note: This change requires an updated 'guix' package that contains
Linux-swap support in (gnu build file-systems).
* gnu/installer/parted.scm (user-partitions->configuration): Use UUIDs
in the 'swap-devices' field.
---
gnu/installer/parted.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gnu/installer/parted.scm b/gnu/installer/parted.scm
index fffd5abf3b..d799ee0e73 100644
--- a/gnu/installer/parted.scm
+++ b/gnu/installer/parted.scm
@@ -1327,7 +1327,12 @@ USER-PARTITIONS, or return nothing."
,@(initrd-configuration user-partitions)
,@(if (null? swap-devices)
'()
- `((swap-devices (list ,@swap-devices))))
+ (let* ((uuids (map (lambda (file)
+ (uuid->string (read-partition-uuid file)))
+ swap-devices)))
+ `((swap-devices (list ,@(map (lambda (uuid)
+ `(uuid ,uuid))
+ uuids))))))
,@(if (null? encrypted-partitions)
'()
`((mapped-devices
--
2.28.0
- [bug#44169] [PATCH 0/3] Referring to swap with UUIDs and labels, Ludovic Courtès, 2020/10/23
- [bug#44169] [PATCH 1/3] file-systems: Allow swap space lookup by UUID/label., Ludovic Courtès, 2020/10/23
- [bug#44169] [PATCH 3/3] installer: Use UUIDs in the 'swap-devices' field.,
Ludovic Courtès <=
- [bug#44169] [PATCH 3/3] installer: Use UUIDs in the 'swap-devices' field., Mathieu Othacehe, 2020/10/23
- [bug#44169] [PATCH 3/3] installer: Use UUIDs in the 'swap-devices' field., Ludovic Courtès, 2020/10/26
- [bug#44169] [PATCH 3/3] installer: Use UUIDs in the 'swap-devices' field., Mathieu Othacehe, 2020/10/26
- [bug#44169] [PATCH 3/3] installer: Use UUIDs in the 'swap-devices' field., Ludovic Courtès, 2020/10/28
- bug#44169: [PATCH 3/3] installer: Use UUIDs in the 'swap-devices' field., Ludovic Courtès, 2020/10/29
[bug#44169] [PATCH 2/3] services: swap: Allow for UUIDs and file system labels., Ludovic Courtès, 2020/10/23
[bug#44169] [PATCH 1/3] file-systems: Allow swap space lookup by UUID/label., Mathieu Othacehe, 2020/10/23