[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/13: installer: Warn about hardware support after the welcome page.
From: |
guix-commits |
Subject: |
01/13: installer: Warn about hardware support after the welcome page. |
Date: |
Tue, 15 Nov 2022 06:19:51 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 4f7ffb97a4c2f2ee7aa1c54c23a97e7c0447c08c
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Nov 3 10:42:50 2022 +0100
installer: Warn about hardware support after the welcome page.
This is a followup to 682639c107908426fe6bf0a1b8404b98b7820290, which
added the uvesafb upfront, before welcome page had been displayed.
* gnu/installer/newt/welcome.scm (check-hardware-support): New
procedure.
(run-welcome-page): Use it.
---
gnu/installer/newt/welcome.scm | 85 ++++++++++++++++++++++--------------------
1 file changed, 44 insertions(+), 41 deletions(-)
diff --git a/gnu/installer/newt/welcome.scm b/gnu/installer/newt/welcome.scm
index 326996b005..1c7372b3be 100644
--- a/gnu/installer/newt/welcome.scm
+++ b/gnu/installer/newt/welcome.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
-;;; Copyright © 2020 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2020, 2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2022 Florian Pelz <pelzflorian@pelzflorian.de>
;;;
;;; This file is part of GNU Guix.
@@ -121,55 +121,58 @@ we want this page to occupy all the screen space
available."
(lambda ()
(destroy-form-and-pop form))))))
-(define (run-welcome-page logo)
- "Run a welcome page with the given textual LOGO displayed at the center of
-the page. Ask the user to choose between manual installation, graphical
-installation and reboot."
- (begin
- (when (member "uvesafb" (modules-loaded))
- (run-error-page (G_ "\
+(define (check-hardware-support)
+ "Warn about unsupported devices."
+ (when (member "uvesafb" (modules-loaded))
+ (run-error-page (G_ "\
This may be a false alarm, but possibly your graphics hardware does not
work well with only free software. Expect trouble. If after installation,
the system does not boot, perhaps you will need to add nomodeset to the
kernel arguments and need to configure the uvesafb kernel module.")
- (G_ "Pre-install warning")))
- (when (file-exists? %core-dump)
- (match
- (choice-window
- (G_ "Previous installation failed")
- (G_ "Continue")
- (G_ "Report the failure")
- (G_ "It seems that the previous installation exited unexpectedly \
+ (G_ "Pre-install warning"))))
+
+(define (run-welcome-page logo)
+ "Run a welcome page with the given textual LOGO displayed at the center of
+the page. Ask the user to choose between manual installation, graphical
+installation and reboot."
+ (when (file-exists? %core-dump)
+ (match (choice-window
+ (G_ "Previous installation failed")
+ (G_ "Continue")
+ (G_ "Report the failure")
+ (G_ "It seems that the previous installation exited unexpectedly \
and generated a core dump. Do you want to continue or to report the failure \
first?"))
- (1 #t)
- (2 (raise
- (condition
- (&user-abort-error))))))
- (run-menu-page
- (G_ "GNU Guix install")
- (G_ "Welcome to GNU Guix system installer!
+ (1 #t)
+ (2 (raise
+ (condition
+ (&user-abort-error))))))
+
+ (run-menu-page
+ (G_ "GNU Guix install")
+ (G_ "Welcome to GNU Guix system installer!
You will be guided through a graphical installation program.
If you are familiar with GNU/Linux and you want tight control over \
the installation process, you can instead choose manual installation. \
Documentation is accessible at any time by pressing Ctrl-Alt-F2.")
- logo
- #:listbox-items
- `((,(G_ "Graphical install using a terminal based interface")
- .
- ,(const #t))
- (,(G_ "Install using the shell based process")
- .
- ,(lambda ()
- ;; Switch to TTY3, where a root shell is available for shell based
- ;; install. The other root TTY's would have been ok too.
- (system* "chvt" "3")
- (run-welcome-page logo)))
- (,(G_ "Reboot")
- .
- ,(lambda ()
- (newt-finish)
- (reboot))))
- #:listbox-item->text car)))
+ logo
+ #:listbox-items
+ `((,(G_ "Graphical install using a terminal based interface")
+ .
+ ,check-hardware-support)
+ (,(G_ "Install using the shell based process")
+ .
+ ,(lambda ()
+ (check-hardware-support)
+ ;; Switch to TTY3, where a root shell is available for shell based
+ ;; install. The other root TTY's would have been ok too.
+ (system* "chvt" "3")
+ (run-welcome-page logo)))
+ (,(G_ "Reboot")
+ .
+ ,(lambda ()
+ (newt-finish)
+ (reboot))))
+ #:listbox-item->text car))
- branch master updated (de61a0aa4a -> 5b555d639d), guix-commits, 2022/11/15
- 01/13: installer: Warn about hardware support after the welcome page.,
guix-commits <=
- 03/13: linux-modules: Add 'load-pci-device-database'., guix-commits, 2022/11/15
- 02/13: linux-modules: Add support for listing PCI devices., guix-commits, 2022/11/15
- 07/13: installer: Migrate to 'guile-gnutls'., guix-commits, 2022/11/15
- 08/13: gnu: Add safeint., guix-commits, 2022/11/15
- 10/13: doc: Refer to the pt_BR translation., guix-commits, 2022/11/15
- 04/13: installer: Use 'current-guix' for extensions., guix-commits, 2022/11/15
- 09/13: gnu: Add fuzzel., guix-commits, 2022/11/15
- 11/13: doc: Build pt_BR manual., guix-commits, 2022/11/15
- 12/13: doc: Link to the Git book instead of the git-scm.com homepage., guix-commits, 2022/11/15
- 13/13: doc: Add missing closing parentheses in examples., guix-commits, 2022/11/15