summaryrefslogtreecommitdiff
path: root/gnu/installer.scm
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2020-04-08 13:00:50 +0200
committerMarius Bakke <mbakke@fastmail.com>2020-04-08 13:00:50 +0200
commit27783023993f9272ce422868d14529159c4a5218 (patch)
tree9013b08aa39e497b1fd8e01a05254278d83f0ff7 /gnu/installer.scm
parentbe1e842ad78ac6c52fc7790f4a3ffd716673c111 (diff)
parentba6f2bda18ed19fa486a9c3e2c3baea6c66c6867 (diff)
Merge branch 'master' into core-updates
Conflicts: etc/news.scm gnu/local.mk gnu/packages/check.scm gnu/packages/cross-base.scm gnu/packages/gimp.scm gnu/packages/java.scm gnu/packages/mail.scm gnu/packages/sdl.scm gnu/packages/texinfo.scm gnu/packages/tls.scm gnu/packages/version-control.scm
Diffstat (limited to 'gnu/installer.scm')
-rw-r--r--gnu/installer.scm30
1 files changed, 19 insertions, 11 deletions
diff --git a/gnu/installer.scm b/gnu/installer.scm
index 625b7a9ca4f..10606116726 100644
--- a/gnu/installer.scm
+++ b/gnu/installer.scm
@@ -113,8 +113,10 @@ version of this file."
113 (setlocale LC_ALL locale)) 113 (setlocale LC_ALL locale))
114 114
115 ;; Restart the documentation viewer so it displays the manual in 115 ;; Restart the documentation viewer so it displays the manual in
116 ;; language that corresponds to LOCALE. 116 ;; language that corresponds to LOCALE. Make sure that nothing is
117 (with-error-to-port (%make-void-port "w") 117 ;; printed on the console.
118 (parameterize ((shepherd-message-port
119 (%make-void-port "w")))
118 (lambda () 120 (lambda ()
119 (stop-service 'term-tty2) 121 (stop-service 'term-tty2)
120 (start-service 'term-tty2 (list locale))))))) 122 (start-service 'term-tty2 (list locale)))))))
@@ -172,7 +174,7 @@ been performed at build time."
172 (kmscon-update-keymap (default-keyboard-model) 174 (kmscon-update-keymap (default-keyboard-model)
173 layout variant)))) 175 layout variant))))
174 176
175(define* (compute-keymap-step) 177(define* (compute-keymap-step context)
176 "Return a gexp that runs the keymap-page of INSTALLER and install the 178 "Return a gexp that runs the keymap-page of INSTALLER and install the
177selected keymap." 179selected keymap."
178 #~(lambda (current-installer) 180 #~(lambda (current-installer)
@@ -184,7 +186,7 @@ selected keymap."
184 "/share/X11/xkb/rules/base.xml"))) 186 "/share/X11/xkb/rules/base.xml")))
185 (lambda (models layouts) 187 (lambda (models layouts)
186 ((installer-keymap-page current-installer) 188 ((installer-keymap-page current-installer)
187 layouts))))) 189 layouts '#$context)))))
188 (#$apply-keymap result) 190 (#$apply-keymap result)
189 result))) 191 result)))
190 192
@@ -193,10 +195,15 @@ selected keymap."
193 #:locales-name "locales" 195 #:locales-name "locales"
194 #:iso639-languages-name "iso639-languages" 196 #:iso639-languages-name "iso639-languages"
195 #:iso3166-territories-name "iso3166-territories")) 197 #:iso3166-territories-name "iso3166-territories"))
196 (keymap-step (compute-keymap-step))
197 (timezone-data #~(string-append #$tzdata 198 (timezone-data #~(string-append #$tzdata
198 "/share/zoneinfo/zone.tab"))) 199 "/share/zoneinfo/zone.tab")))
199 #~(lambda (current-installer) 200 #~(lambda (current-installer)
201 ((installer-parameters-menu current-installer)
202 (lambda ()
203 ((installer-parameters-page current-installer)
204 (lambda _
205 (#$(compute-keymap-step 'param)
206 current-installer)))))
200 (list 207 (list
201 ;; Ask the user to choose a locale among those supported by 208 ;; Ask the user to choose a locale among those supported by
202 ;; the glibc. Install the selected locale right away, so that 209 ;; the glibc. Install the selected locale right away, so that
@@ -238,7 +245,8 @@ selected keymap."
238 (id 'keymap) 245 (id 'keymap)
239 (description (G_ "Keyboard mapping selection")) 246 (description (G_ "Keyboard mapping selection"))
240 (compute (lambda _ 247 (compute (lambda _
241 (#$keymap-step current-installer))) 248 (#$(compute-keymap-step 'default)
249 current-installer)))
242 (configuration-formatter keyboard-layout->configuration)) 250 (configuration-formatter keyboard-layout->configuration))
243 251
244 ;; Ask the user to input a hostname for the system. 252 ;; Ask the user to input a hostname for the system.
@@ -271,7 +279,7 @@ selected keymap."
271 (description (G_ "Services")) 279 (description (G_ "Services"))
272 (compute (lambda _ 280 (compute (lambda _
273 ((installer-services-page current-installer)))) 281 ((installer-services-page current-installer))))
274 (configuration-formatter system-services->configuration)) 282 (configuration-formatter system-services->configuration))
275 283
276 ;; Run a partitioning tool allowing the user to modify 284 ;; Run a partitioning tool allowing the user to modify
277 ;; partition tables, partitions and their mount points. 285 ;; partition tables, partitions and their mount points.
@@ -284,7 +292,7 @@ selected keymap."
284 ((installer-partition-page current-installer)))) 292 ((installer-partition-page current-installer))))
285 (configuration-formatter user-partitions->configuration)) 293 (configuration-formatter user-partitions->configuration))
286 294
287 (installer-step 295 (installer-step
288 (id 'final) 296 (id 'final)
289 (description (G_ "Configuration file")) 297 (description (G_ "Configuration file"))
290 (compute 298 (compute
@@ -295,8 +303,8 @@ selected keymap."
295(define guile-newt 303(define guile-newt
296 ;; Guile-Newt with 'form-watch-fd'. 304 ;; Guile-Newt with 'form-watch-fd'.
297 ;; TODO: Remove once a new release is out. 305 ;; TODO: Remove once a new release is out.
298 (let ((commit "b3c885d42cfac327d3531c9d064939514ce6bf12") 306 (let ((commit "c3cdeb0b53ac71aedabee669f57d44563c662446")
299 (revision "1")) 307 (revision "2"))
300 (package 308 (package
301 (inherit (@ (gnu packages guile-xyz) guile-newt)) 309 (inherit (@ (gnu packages guile-xyz) guile-newt))
302 (name "guile-newt") 310 (name "guile-newt")
@@ -309,7 +317,7 @@ selected keymap."
309 (file-name (git-file-name name version)) 317 (file-name (git-file-name name version))
310 (sha256 318 (sha256
311 (base32 319 (base32
312 "02p0bi6c05699idgx6gfkljhqgi8zf09clhzx81i8wa064s70r1y"))))))) 320 "1gksd1lzgjjh1p9vczghg8jw995d22hm34kbsiv8rcryirv2xy09")))))))
313 321
314(define (installer-program) 322(define (installer-program)
315 "Return a file-like object that runs the given INSTALLER." 323 "Return a file-like object that runs the given INSTALLER."