[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/21: installer: Clear the mount point field for swap file systems.
From: |
John Darrington |
Subject: |
09/21: installer: Clear the mount point field for swap file systems. |
Date: |
Sun, 29 Jan 2017 07:35:02 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit 39b613862b6022b724415b7ab868c3eb36d2c7b7
Author: John Darrington <address@hidden>
Date: Tue Jan 24 15:54:44 2017 +0100
installer: Clear the mount point field for swap file systems.
* gnu/system/installer/mount-point.scm (mount-point-page-init): Clear mount
point field for swap file systems or unused file systems.
---
gnu/system/installer/mount-point.scm | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/gnu/system/installer/mount-point.scm
b/gnu/system/installer/mount-point.scm
index 62cdbcc..794ec9f 100644
--- a/gnu/system/installer/mount-point.scm
+++ b/gnu/system/installer/mount-point.scm
@@ -37,7 +37,7 @@
(define (my-fields) `((mount-point ,(M_ "Mount Point") 40)
(fs-type ,(M_ "File System Type")
- ,valid-file-system-types)
+ ,(append valid-file-system-types (list
"<unused>")))
(label ,(M_ "Label") 16)))
(define (mount-point-refresh page)
@@ -124,11 +124,20 @@
(my-fields)
(lambda (f)
(let ((field (get-current-field f)))
- (if (eq? (field-symbol field) 'mount-point)
- (form-set-value! f 'label
- (string-append
- host-name "-"
- (form-get-value f
'mount-point)))))))))
+ (case (field-symbol field)
+ ((mount-point)
+ (form-set-value! f 'label
+ (string-append
+ host-name "-"
+ (form-get-value f 'mount-point))))
+ ((fs-type)
+ (cond
+ ((equal? "swap" (form-get-value f 'fs-type))
+ (form-set-value! f 'label "swap-space")
+ (form-set-value! f 'mount-point ""))
+ ((equal? "<unused>" (form-get-value f 'fs-type))
+ (form-set-value! f 'label "")
+ (form-set-value! f 'mount-point ""))))))))))
(page-set-datum! p 'navigation nav)
(let ((dev (page-datum p 'device)))
- branch wip-installer updated (61c0ffb -> 9ff399e), John Darrington, 2017/01/29
- 02/21: gurses: Use inverse instead of underline for field value area., John Darrington, 2017/01/29
- 07/21: installer: No passphrase is needed for clear networks., John Darrington, 2017/01/29
- 04/21: installer: Change livery., John Darrington, 2017/01/29
- 08/21: installer: Prepare for new wireless network features., John Darrington, 2017/01/29
- 05/21: installer: Tolerate an undefined system role in config generation., John Darrington, 2017/01/29
- 09/21: installer: Clear the mount point field for swap file systems.,
John Darrington <=
- 03/21: installer: Add new procedure to check file system specifications., John Darrington, 2017/01/29
- 01/21: installer: Delete unused procedure "justify"., John Darrington, 2017/01/29
- 20/21: gurses: Add new procedure "word-endings"., John Darrington, 2017/01/29
- 14/21: gurses: Add predicate to test if a complex char is blank., John Darrington, 2017/01/29
- 12/21: gurses: Avoid one usage of car and cdr., John Darrington, 2017/01/29
- 15/21: gurses: Avoid one more use of car and cdr., John Darrington, 2017/01/29
- 13/21: gurses: xchar->char: New procedure., John Darrington, 2017/01/29
- 19/21: installer: Support WEP encrypted wireless., John Darrington, 2017/01/29
- 16/21: gurses: Avoid yet another use of car and cdr., John Darrington, 2017/01/29
- 11/21: installer: Fix the key map option., John Darrington, 2017/01/29