[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
138/197: installer: Clear the mount point field for swap file systems.
From: |
Danny Milosavljevic |
Subject: |
138/197: installer: Clear the mount point field for swap file systems. |
Date: |
Mon, 3 Jul 2017 20:37:14 -0400 (EDT) |
dannym pushed a commit to branch wip-installer-2
in repository guix.
commit 9cbc2bee140685b0cf4c4389b7946cdbff6dbfa4
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)))
- 68/197: installer: Add new page to set the system role., (continued)
- 68/197: installer: Add new page to set the system role., Danny Milosavljevic, 2017/07/03
- 117/197: installer: Remove unnecessary "begin"., Danny Milosavljevic, 2017/07/03
- 113/197: installer: Explicitly set the #:panel parameter for window creation procedures., Danny Milosavljevic, 2017/07/03
- 122/197: gurses: Populate the choices box in forms., Danny Milosavljevic, 2017/07/03
- 128/197: installer: Remove redundant list of file system types., Danny Milosavljevic, 2017/07/03
- 115/197: installer: New procedure refresh*., Danny Milosavljevic, 2017/07/03
- 153/197: installer: Add optional arguments to addstr*., Danny Milosavljevic, 2017/07/03
- 97/197: installer: Whitespace changes only, Danny Milosavljevic, 2017/07/03
- 139/197: installer: Allow file system specifications to be removed., Danny Milosavljevic, 2017/07/03
- 136/197: installer: No passphrase is needed for clear networks., Danny Milosavljevic, 2017/07/03
- 138/197: installer: Clear the mount point field for swap file systems.,
Danny Milosavljevic <=
- 135/197: installer: Use a "hard" method of rebooting. Do not rely on shepherd., Danny Milosavljevic, 2017/07/03
- 148/197: installer: Support WEP encrypted wireless., Danny Milosavljevic, 2017/07/03
- 176/197: installer: Fix incorrect symbol in generated config file., Danny Milosavljevic, 2017/07/03
- 177/197: installer: Remove non-existant supplementary group., Danny Milosavljevic, 2017/07/03
- 182/197: installer: Kill old dhclient instance before starting new one., Danny Milosavljevic, 2017/07/03
- 189/197: installer: Fix buglet where keys were sometimes ignored in users page., Danny Milosavljevic, 2017/07/03
- 179/197: installer: Mount all partitions instead of just the root., Danny Milosavljevic, 2017/07/03
- 190/197: gurses: forms: Minor refactor., Danny Milosavljevic, 2017/07/03
- 194/197: guix system: Remove outdated (gnu system grub) import., Danny Milosavljevic, 2017/07/03
- 197/197: installer: Use "G_" instead of "_"., Danny Milosavljevic, 2017/07/03