[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
94/197: installer: Add the notion of uuids to prospective filesystems.
From: |
Danny Milosavljevic |
Subject: |
94/197: installer: Add the notion of uuids to prospective filesystems. |
Date: |
Mon, 3 Jul 2017 20:37:06 -0400 (EDT) |
dannym pushed a commit to branch wip-installer-2
in repository guix.
commit 8a7b7d01e6f642893e094c9036ba2ed69dd6889f
Author: John Darrington <address@hidden>
Date: Sun Jan 15 12:47:34 2017 +0100
installer: Add the notion of uuids to prospective filesystems.
* gnu/system/installer/filesystems.scm (<file-system-spec>) : Add uuid
member.
---
gnu/system/installer/filesystems.scm | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/gnu/system/installer/filesystems.scm
b/gnu/system/installer/filesystems.scm
index cba8333..0f65d44 100644
--- a/gnu/system/installer/filesystems.scm
+++ b/gnu/system/installer/filesystems.scm
@@ -34,9 +34,11 @@
#:export (make-file-system-spec)
#:export (<file-system-spec>)
+ #:export (file-system-spec?)
#:export (file-system-spec-mount-point)
#:export (file-system-spec-label)
#:export (file-system-spec-type)
+ #:export (file-system-spec-uuid)
#:export (minimum-store-size)
#:export (filesystem-task-complete?)
@@ -45,11 +47,17 @@
;; File system spec declaration.
(define-record-type <file-system-spec>
- (make-file-system-spec mount-point label type)
+ (make-file-system-spec' mount-point label type uuid)
file-system-spec?
- (mount-point file-system-spec-mount-point) ; string
- (label file-system-spec-label) ; string
- (type file-system-spec-type)) ; symbol
+ (mount-point file-system-spec-mount-point)
+ (label file-system-spec-label)
+ (type file-system-spec-type)
+ (uuid file-system-spec-uuid))
+
+(define (make-file-system-spec mount-point label type)
+ (let ((uuid (slurp "uuidgen" identity)))
+ (make-file-system-spec' mount-point label type (car uuid))))
+
(define minimum-store-size 7000)
- 56/197: installer: Do not use /tmp for holding the configuration., (continued)
- 56/197: installer: Do not use /tmp for holding the configuration., Danny Milosavljevic, 2017/07/03
- 66/197: installer: Add option to final page to reboot the system., Danny Milosavljevic, 2017/07/03
- 71/197: installer: Add confidence indicator., Danny Milosavljevic, 2017/07/03
- 67/197: installer: Add predicate for the network task., Danny Milosavljevic, 2017/07/03
- 74/197: installer: Remove explicit calls to curs-set from pages., Danny Milosavljevic, 2017/07/03
- 64/197: installer: Make setting up of the network a prerequisite., Danny Milosavljevic, 2017/07/03
- 80/197: installer: Ignore case in button accelerators., Danny Milosavljevic, 2017/07/03
- 86/197: installer: slurp: Ignore blank lines in output., Danny Milosavljevic, 2017/07/03
- 76/197: installer: New procedure "page-leave"., Danny Milosavljevic, 2017/07/03
- 84/197: installer: Use guix build syscalls module for network interrogation., Danny Milosavljevic, 2017/07/03
- 94/197: installer: Add the notion of uuids to prospective filesystems.,
Danny Milosavljevic <=
- 89/197: installer: Make the network menu more reliable., Danny Milosavljevic, 2017/07/03
- 90/197: installer: Enable direct scrolling to top or bottom of menus., Danny Milosavljevic, 2017/07/03
- 78/197: installer: Ensure that the cursor visibility is updated on each page., Danny Milosavljevic, 2017/07/03
- 107/197: installer: Do not allow the creation of invalid file-system specificaitons., Danny Milosavljevic, 2017/07/03
- 57/197: installer: Add a console-keymap service., Danny Milosavljevic, 2017/07/03
- 69/197: installer: Remove "continue" button from host name page., Danny Milosavljevic, 2017/07/03
- 58/197: installer: Add flags to indicate network interface status., Danny Milosavljevic, 2017/07/03
- 72/197: installer: Use --fallback when installing., Danny Milosavljevic, 2017/07/03
- 73/197: installer: Correct behaviour of push-cursor and pop-cursor procedures., Danny Milosavljevic, 2017/07/03
- 77/197: installer: New procedure: page-enter., Danny Milosavljevic, 2017/07/03