[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
180/197: installer: Use a different mount-point for each install attempt
From: |
Danny Milosavljevic |
Subject: |
180/197: installer: Use a different mount-point for each install attempt. |
Date: |
Mon, 3 Jul 2017 20:37:21 -0400 (EDT) |
dannym pushed a commit to branch wip-installer-2
in repository guix.
commit 2b0f83edbd2ba6769cf13561da53f0ee0d720902
Author: John Darrington <address@hidden>
Date: Mon Feb 13 14:53:48 2017 +0100
installer: Use a different mount-point for each install attempt.
* gnu/system/installer/install.scm (install-page-key-handler): When
attempting to remount devices prior to installing, use a disctinct
mount-point prefix for each attempt.
---
gnu/system/installer/install.scm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/gnu/system/installer/install.scm b/gnu/system/installer/install.scm
index 898f3aa..592e49e 100644
--- a/gnu/system/installer/install.scm
+++ b/gnu/system/installer/install.scm
@@ -102,12 +102,13 @@
(force-reboot))
((buttons-key-matches-symbol? nav ch 'continue)
- (let ((target "/target")
- (window-port (make-window-port config-window)))
+ (let* ((attempt (page-datum page 'attempt))
+ (target (format #f "/target-~a" attempt))
+ (window-port (make-window-port config-window)))
(catch #t
(lambda ()
+ (page-set-datum! page 'attempt (1+ attempt))
(and
-
(fold
(lambda (x prev)
(and prev
@@ -201,6 +202,7 @@
(page-set-wwin! p pr)
(page-set-datum! p 'navigation buttons)
(page-set-datum! p 'config-window (inner config-window))
+ (page-set-datum! p 'attempt 0)
(buttons-post buttons bwin)
(refresh* (outer pr))
(refresh* text-window)
- 161/197: installer: Improve i18n in ping page., (continued)
- 161/197: installer: Improve i18n in ping page., Danny Milosavljevic, 2017/07/03
- 162/197: gurses: Avoid one use of car/cdr., Danny Milosavljevic, 2017/07/03
- 166/197: installer: Provide verbose description of locale., Danny Milosavljevic, 2017/07/03
- 167/197: installer: Fix bug when changing languages., Danny Milosavljevic, 2017/07/03
- 156/197: installer: New page to select language., Danny Milosavljevic, 2017/07/03
- 168/197: installer: Fix the startup locale., Danny Milosavljevic, 2017/07/03
- 173/197: installer: Remove whitespace., Danny Milosavljevic, 2017/07/03
- 01/197: gnu: Add graphical installer, Danny Milosavljevic, 2017/07/03
- 174/197: installer: Provide the ability to add new users., Danny Milosavljevic, 2017/07/03
- 178/197: installer: Infer likely entries for user accounts from the gecos field., Danny Milosavljevic, 2017/07/03
- 180/197: installer: Use a different mount-point for each install attempt.,
Danny Milosavljevic <=
- 183/197: installer: Specify a pid file for wpa_supplicant., Danny Milosavljevic, 2017/07/03
- 181/197: installer: Make the install attempts counter global., Danny Milosavljevic, 2017/07/03
- 186/197: installer: Return to network page after passphrase entry., Danny Milosavljevic, 2017/07/03
- 185/197: installer: Avoid flicker in network page., Danny Milosavljevic, 2017/07/03
- 169/197: installer: Add users page., Danny Milosavljevic, 2017/07/03
- 193/197: install: %installation-services: Make mingetty-service autologin to the installer., Danny Milosavljevic, 2017/07/03
- 196/197: installer: Add imports., Danny Milosavljevic, 2017/07/03
- 195/197: installer: Emit (gnu bootloader grub) import., Danny Milosavljevic, 2017/07/03
- 191/197: gurses: form: Handle Ctrl-F and Ctrl-B in forms., Danny Milosavljevic, 2017/07/03