[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
65/197: installer: Ensure that all mount points are absolute paths.
From: |
Danny Milosavljevic |
Subject: |
65/197: installer: Ensure that all mount points are absolute paths. |
Date: |
Mon, 3 Jul 2017 20:37:01 -0400 (EDT) |
dannym pushed a commit to branch wip-installer-2
in repository guix.
commit af8e9f65f9f68f4f37eeec34cbe3219222c0c670
Author: John Darrington <address@hidden>
Date: Mon Jan 2 09:32:36 2017 +0100
installer: Ensure that all mount points are absolute paths.
* gnu/system/installer/filesystems.scm (filesystem-task-incomplete-reason):
Add
condition that all mount points must be absolute.
---
gnu/system/installer/filesystems.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/system/installer/filesystems.scm
b/gnu/system/installer/filesystems.scm
index a068125..bde276d 100644
--- a/gnu/system/installer/filesystems.scm
+++ b/gnu/system/installer/filesystems.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2016 John Darrington <address@hidden>
+;;; Copyright © 2016, 2017 John Darrington <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -47,6 +47,22 @@
(N_ "You must specify a mount point for the root (/)."))
+ (let ((non-absolute-list (fold (lambda (x prev)
+ (if (absolute-file-name? (cdr x))
+ prev
+ (cons (cdr x) prev)))
+ '()
+ mount-points)))
+ (and (not (null? non-absolute-list))
+ (ngettext
+ (format #f
+ (N_ "The mount point ~s is a relative path. All mount
points must be absolute.")
+ (car non-absolute-list))
+ (format #f
+ (N_ "The mount points ~s are relative paths. All mount
points must be absolute.")
+ non-absolute-list)
+ (length non-absolute-list))))
+
(and (< (size-of-partition (find-mount-device (%store-directory)
mount-points))
minimum-store-size)
(format #f
- 45/197: installer: Fix bug where window-pipe did not return the proper exit status., (continued)
- 45/197: installer: Fix bug where window-pipe did not return the proper exit status., Danny Milosavljevic, 2017/07/03
- 43/197: installer: Rename module "new" to "guixsd-installer"., Danny Milosavljevic, 2017/07/03
- 42/197: installer: Wrap installer in (catch #t ...), Danny Milosavljevic, 2017/07/03
- 48/197: installer: Close unused ports in pipe-cmd., Danny Milosavljevic, 2017/07/03
- 47/197: installer: Improve install page., Danny Milosavljevic, 2017/07/03
- 29/197: installer: Add a task to actually call guix system init., Danny Milosavljevic, 2017/07/03
- 53/197: installer: Change N_ from a procedure to a macro., Danny Milosavljevic, 2017/07/03
- 50/197: installer: Issue message to user on failure of filesystems task., Danny Milosavljevic, 2017/07/03
- 61/197: installer: Indicate which wireless access points are encrypted., Danny Milosavljevic, 2017/07/03
- 59/197: installer: Format configuration to fix width of window., Danny Milosavljevic, 2017/07/03
- 65/197: installer: Ensure that all mount points are absolute paths.,
Danny Milosavljevic <=
- 09/197: installer: Use a record instead of a list to contain tasks., Danny Milosavljevic, 2017/07/03
- 23/197: installer: Use a cleaner way of generating the lspci information., Danny Milosavljevic, 2017/07/03
- 35/197: installer: New predicate valid-hostname?, Danny Milosavljevic, 2017/07/03
- 36/197: installer: Ensure that all mount-points have a file system., Danny Milosavljevic, 2017/07/03
- 39/197: installer: Replace an instance of cdr with match., Danny Milosavljevic, 2017/07/03
- 46/197: installer: Replace "%temporary-configuration-file-port" with "config-file"., Danny Milosavljevic, 2017/07/03
- 30/197: installer: Write the configuration to a temporary file., Danny Milosavljevic, 2017/07/03
- 24/197: installer: Add a new menu to configure wireless interfaces., Danny Milosavljevic, 2017/07/03
- 49/197: installer: Replace spawned mount command with the mount syscall., Danny Milosavljevic, 2017/07/03
- 44/197: installer: Use consistent window heights., Danny Milosavljevic, 2017/07/03