[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
47/197: installer: Improve install page.
From: |
Danny Milosavljevic |
Subject: |
47/197: installer: Improve install page. |
Date: |
Mon, 3 Jul 2017 20:36:58 -0400 (EDT) |
dannym pushed a commit to branch wip-installer-2
in repository guix.
commit 7e5a845b690b740050bdc00f2456f65fbdc9f775
Author: John Darrington <address@hidden>
Date: Wed Dec 28 18:35:12 2016 +0100
installer: Improve install page.
* gnu/system/installer/install.scm (install-page-key-handler) [continue]:
Remove superfluous actions. Improve error handler.
---
gnu/system/installer/install.scm | 36 +++++++++++++++---------------------
1 file changed, 15 insertions(+), 21 deletions(-)
diff --git a/gnu/system/installer/install.scm b/gnu/system/installer/install.scm
index 44da10c..ceeb960 100644
--- a/gnu/system/installer/install.scm
+++ b/gnu/system/installer/install.scm
@@ -80,18 +80,14 @@
(catch #t
(lambda ()
- (and
- ;; Undo any previous attempt to install ...
- (or (pipe-cmd window-port "herd"
- "herd" "stop" "cow-store")
- #t)
-
- (or (pipe-cmd window-port "umount"
- "umount" target) #t)
-
+ (and
(mkdir-p target)
(zero? (pipe-cmd window-port "mount"
"mount" "-t" "ext4" root-device target))
+
+ (zero? (pipe-cmd window-port "herd"
+ "herd" "start" "cow-store" target))
+
(mkdir-p (string-append target "/etc"))
(or (copy-file config-file
(string-append target "/etc/config.scm"))
@@ -99,22 +95,20 @@
(file-exists? (string-append target "/etc/config.scm"))
- ;; Cow store seems to mess with temporary files.
- (zero? (pipe-cmd window-port "herd"
- "herd" "start" "cow-store" target))
-
(zero? (pipe-cmd window-port "guix" "guix" "system" "init"
(string-append target "/etc/config.scm")
- target))))
+ target))
+
+ (display (gettext
+ "Installation is complete. You should reboot now.")
+ window-port)))
(lambda (key . args)
- (addstr* config-window
- (gettext
- (format #f "A \"~s\" exception occured: ~s" key args))))
- )
+ #f)
+ (lambda (key subr message args . rest)
+ (display-error (stack-ref (make-stack #t) 3)
+ window-port subr message args rest)))
(close-port window-port))))
- #f
- )
- )
+ #f))
(define (install-page-refresh page)
(when (not (page-initialised? page))
- 32/197: installer: Remove ad-hoc completed predicate and use standard one., (continued)
- 32/197: installer: Remove ad-hoc completed predicate and use standard one., Danny Milosavljevic, 2017/07/03
- 34/197: installer: Replace some instances of "car"., Danny Milosavljevic, 2017/07/03
- 40/197: installer: Turn off kernel ring messages to console., Danny Milosavljevic, 2017/07/03
- 37/197: install: Define new procedure pipe-cmd and use it to implement window-pipe., Danny Milosavljevic, 2017/07/03
- 41/197: installer: Enable scrolling in the installation window., Danny Milosavljevic, 2017/07/03
- 38/197: installer: Correct bugs generating the configuration., Danny Milosavljevic, 2017/07/03
- 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 <=
- 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, 2017/07/03
- 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