[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/26: installer: Check that swap spaces have not been assigned mount po
From: |
John Darrington |
Subject: |
10/26: installer: Check that swap spaces have not been assigned mount points |
Date: |
Sun, 22 Jan 2017 12:09:24 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit 3f13dddc40091ed2d25f4049b00a8a59389e010f
Author: John Darrington <address@hidden>
Date: Wed Jan 18 08:41:13 2017 +0100
installer: Check that swap spaces have not been assigned mount points
* gnu/system/installer/filesystems.scm (filesystem-task-incomplete?): Show
an
error if the user has tried to allocate a mount point to a swap filesystem.
---
gnu/system/installer/filesystems.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/system/installer/filesystems.scm
b/gnu/system/installer/filesystems.scm
index c7ff029..dec473d 100644
--- a/gnu/system/installer/filesystems.scm
+++ b/gnu/system/installer/filesystems.scm
@@ -82,6 +82,14 @@
(and (not (find-mount-device "/" mount-points))
(M_ "You must specify a mount point for the root (/)."))
+ (fold (lambda (x prev)
+ (or prev
+ (match x
+ ((dev . ($ <file-system-spec> mp label type uuid))
+ (if (and (eq? type 'swap) (not (zero? (string-length
mp))))
+ (gettext "Swap systems should not have a mount
point")
+ #f)))))
+ #f mount-points)
(let ((non-absolute-list
(fold (lambda (x prev)
- branch wip-installer updated (613ab98 -> 61c0ffb), John Darrington, 2017/01/22
- 02/26: installer: Properly handle swap partitions when generating the configuration., John Darrington, 2017/01/22
- 07/26: gurses: Change highlighting from bold to inverse., John Darrington, 2017/01/22
- 04/26: installer: Do not add file systems which are invalid., John Darrington, 2017/01/22
- 10/26: installer: Check that swap spaces have not been assigned mount points,
John Darrington <=
- 14/26: installer: Distinguish between Wifi encryption methods., John Darrington, 2017/01/22
- 01/26: installer: Extend the 'file-system' concept to include swap spaces., John Darrington, 2017/01/22
- 21/26: installer: Do not assume the root file system is of type "ext4"., John Darrington, 2017/01/22
- 17/26: installer: Note which types of file system are supported., John Darrington, 2017/01/22
- 25/26: installer: Emphasise that writing filesystems destroys existing data., John Darrington, 2017/01/22
- 05/26: installer: Fix bug where the selected item of main page was not indicated., John Darrington, 2017/01/22
- 08/26: gurses: form: Use match instead of car, cdr etc., John Darrington, 2017/01/22
- 03/26: installer: Do not allow the creation of invalid file-system specificaitons., John Darrington, 2017/01/22
- 15/26: gurses: Allow menu update to work for panel windows., John Darrington, 2017/01/22
- 18/26: gurses: Populate the choices box in forms., John Darrington, 2017/01/22