diff options
| author | Tobias Geerinckx-Rice <me@tobias.gr> | 2019-06-08 04:14:02 +0200 |
|---|---|---|
| committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2019-08-26 15:56:33 +0200 |
| commit | d4d27ddb99280d6d77282ddc2f010c59bff0b665 (patch) | |
| tree | a2a1dd1aa55d018bcb055a6e71726bbdfcc6183f | |
| parent | 55c43108ac763c68f95cce3d32c60b8944b771f5 (diff) | |
installer: Partition as the last step.
Multiple users have been understandably displeased to find out that
their network card was unsupported, and Internet access mandatory,
after having already formatted their partitions.
* gnu/installer.scm (installer-steps): Run the ‘partition’ step just
before the ‘final’ one.
| -rw-r--r-- | gnu/installer.scm | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/gnu/installer.scm b/gnu/installer.scm index 15d971dfc4d..167653263fc 100644 --- a/gnu/installer.scm +++ b/gnu/installer.scm | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com> | 2 | ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com> |
| 3 | ;;; Copyright © 2019 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2019 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr> | ||
| 4 | ;;; | 5 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 6 | ;;; This file is part of GNU Guix. |
| 6 | ;;; | 7 | ;;; |
| @@ -226,15 +227,6 @@ selected keymap." | |||
| 226 | (#$keymap-step current-installer))) | 227 | (#$keymap-step current-installer))) |
| 227 | (configuration-formatter keyboard-layout->configuration)) | 228 | (configuration-formatter keyboard-layout->configuration)) |
| 228 | 229 | ||
| 229 | ;; Run a partitioning tool allowing the user to modify | ||
| 230 | ;; partition tables, partitions and their mount points. | ||
| 231 | (installer-step | ||
| 232 | (id 'partition) | ||
| 233 | (description (G_ "Partitioning")) | ||
| 234 | (compute (lambda _ | ||
| 235 | ((installer-partition-page current-installer)))) | ||
| 236 | (configuration-formatter user-partitions->configuration)) | ||
| 237 | |||
| 238 | ;; Ask the user to input a hostname for the system. | 230 | ;; Ask the user to input a hostname for the system. |
| 239 | (installer-step | 231 | (installer-step |
| 240 | (id 'hostname) | 232 | (id 'hostname) |
| @@ -267,6 +259,17 @@ selected keymap." | |||
| 267 | ((installer-services-page current-installer)))) | 259 | ((installer-services-page current-installer)))) |
| 268 | (configuration-formatter system-services->configuration)) | 260 | (configuration-formatter system-services->configuration)) |
| 269 | 261 | ||
| 262 | ;; Run a partitioning tool allowing the user to modify | ||
| 263 | ;; partition tables, partitions and their mount points. | ||
| 264 | ;; Do this last so the user has something to boot if any | ||
| 265 | ;; of the previous steps didn't go as expected. | ||
| 266 | (installer-step | ||
| 267 | (id 'partition) | ||
| 268 | (description (G_ "Partitioning")) | ||
| 269 | (compute (lambda _ | ||
| 270 | ((installer-partition-page current-installer)))) | ||
| 271 | (configuration-formatter user-partitions->configuration)) | ||
| 272 | |||
| 270 | (installer-step | 273 | (installer-step |
| 271 | (id 'final) | 274 | (id 'final) |
| 272 | (description (G_ "Configuration file")) | 275 | (description (G_ "Configuration file")) |
