[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/80: installer: Add new procedure to get the list of volumes.
From: |
John Darrington |
Subject: |
17/80: installer: Add new procedure to get the list of volumes. |
Date: |
Tue, 3 Jan 2017 15:49:42 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit e89e95566f827f337b87a29d7e049f8425e45846
Author: John Darrington <address@hidden>
Date: Thu Dec 22 18:05:16 2016 +0100
installer: Add new procedure to get the list of volumes.
* gnu/system/installer/partition-reader.scm (volumes): New procedure.
---
gnu/system/installer/partition-reader.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gnu/system/installer/partition-reader.scm
b/gnu/system/installer/partition-reader.scm
index 65c7107..c0db6a7 100644
--- a/gnu/system/installer/partition-reader.scm
+++ b/gnu/system/installer/partition-reader.scm
@@ -36,7 +36,7 @@
find-partition
- disk-volumes)
+ volumes)
#:use-module (ice-9 rdelim)
#:use-module (ice-9 match)
@@ -178,6 +178,11 @@ number of Megabytes"
"Return a list of disk volumes on the current machine"
(assemble-partitions (read-partition-info) '() '()))
+(define (volumes)
+ "Return a list of disk volumes on the current machine, excluding mappers"
+ (filter (lambda (v) (not (equal? "dm" (disk-type v))))
+ (disk-volumes)))
+
(define (device-id pr)
- branch wip-installer created (now 9c4d060), John Darrington, 2017/01/03
- 04/80: installer: Fix broken timezone menu., John Darrington, 2017/01/03
- 05/80: installer: fix warning in usage of "format"., John Darrington, 2017/01/03
- 03/80: installer: Remove obsolete procedures/variables, John Darrington, 2017/01/03
- 02/80: installer: Fix broken keymap change option., John Darrington, 2017/01/03
- 07/80: installer: Use ice-9 match., John Darrington, 2017/01/03
- 06/80: installer: use ice-9 format everywhere., John Darrington, 2017/01/03
- 08/80: installer: Add IETF contraints for hostname in entry form., John Darrington, 2017/01/03
- 12/80: installer: Add gurses modules., John Darrington, 2017/01/03
- 21/80: gnu: guix: Add dependency: guile-ncurses., John Darrington, 2017/01/03
- 17/80: installer: Add new procedure to get the list of volumes.,
John Darrington <=
- 19/80: installer: Handle the 'back' action in the filesystems task., John Darrington, 2017/01/03
- 23/80: installer: Fix incorrect host in ping task., John Darrington, 2017/01/03
- 25/80: installer: Use a cleaner way of generating the lspci information., John Darrington, 2017/01/03
- 24/80: installer: Make "interfaces" return an alist., John Darrington, 2017/01/03
- 27/80: installer: Connect ethernet interfaces on selection., John Darrington, 2017/01/03
- 28/80: installer: Let the kernel know about (possibly) changed partitions., John Darrington, 2017/01/03
- 49/80: installer: Wrap installer in (catch #t ...), John Darrington, 2017/01/03
- 09/80: installer: Use a record instead of a list to contain tasks., John Darrington, 2017/01/03
- 29/80: installer: Deal with partition tables which are (partially) corrupt., John Darrington, 2017/01/03
- 37/80: installer: Improve dependencies on the final task., John Darrington, 2017/01/03