summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2022-10-14 17:33:28 +0200
committerMathieu Othacehe <othacehe@gnu.org>2022-10-20 10:50:50 +0200
commit2a5c2a6184d65a1314fdf15bcfa5ddda5756ec18 (patch)
tree6dcec8f03b87d4325475d3ea279c9e3bd3e23294
parent96bb00d20336f43fac2c42662e4b1d300e624738 (diff)
installer: Propose the user to report a "guix system init" failure.
* gnu/installer/newt/final.scm (run-install-failed-page): Add a "Report the failure" button.
-rw-r--r--gnu/installer/newt/final.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/installer/newt/final.scm b/gnu/installer/newt/final.scm
index 7c3f73ee82f..6e55be5067a 100644
--- a/gnu/installer/newt/final.scm
+++ b/gnu/installer/newt/final.scm
@@ -80,16 +80,21 @@ press the button to reboot.")))
80(define (run-install-failed-page) 80(define (run-install-failed-page)
81 (match (current-clients) 81 (match (current-clients)
82 (() 82 (()
83 (match (choice-window 83 (match (ternary-window
84 (G_ "Installation failed") 84 (G_ "Installation failed")
85 (G_ "Resume") 85 (G_ "Resume")
86 (G_ "Restart the installer") 86 (G_ "Restart the installer")
87 (G_ "Report the failure")
87 (G_ "The final system installation step failed. You can resume from \ 88 (G_ "The final system installation step failed. You can resume from \
88a specific step, or restart the installer.")) 89a specific step, or restart the installer."))
89 (1 (abort-to-prompt 'installer-step 'abort)) 90 (1 (abort-to-prompt 'installer-step 'abort))
90 (2 91 (2
91 ;; Keep going, the installer will be restarted later on. 92 ;; Keep going, the installer will be restarted later on.
92 #t))) 93 #t)
94 (3 (raise
95 (condition
96 (&message
97 (message "User abort.")))))))
93 (_ 98 (_
94 (send-to-clients '(installation-failure)) 99 (send-to-clients '(installation-failure))
95 #t))) 100 #t)))