doc: Mention the Russian translation.
[jackhill/guix/guix.git] / gnu / system / install.scm
CommitLineData
fc91c17a 1;;; GNU Guix --- Functional package management for GNU
5c215c9e 2;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
b2a5fa59 3;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
f0fbf2c1 4;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
c80cd4df 5;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
fdfdecdb 6;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
fc91c17a
LC
7;;;
8;;; This file is part of GNU Guix.
9;;;
10;;; GNU Guix is free software; you can redistribute it and/or modify it
11;;; under the terms of the GNU General Public License as published by
12;;; the Free Software Foundation; either version 3 of the License, or (at
13;;; your option) any later version.
14;;;
15;;; GNU Guix is distributed in the hope that it will be useful, but
16;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;;; GNU General Public License for more details.
19;;;
20;;; You should have received a copy of the GNU General Public License
21;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22
23(define-module (gnu system install)
24 #:use-module (gnu)
d0f3a672 25 #:use-module (gnu system)
ceb39527 26 #:use-module (gnu bootloader u-boot)
fc91c17a 27 #:use-module (guix gexp)
e87f0591 28 #:use-module (guix store)
fc91c17a 29 #:use-module (guix monads)
0134ebc5 30 #:use-module ((guix packages) #:select (package-version))
83a17b62 31 #:use-module ((guix store) #:select (%store-prefix))
a49d633c 32 #:use-module (gnu installer)
d0f3a672
MO
33 #:use-module (gnu services dbus)
34 #:use-module (gnu services networking)
0190c1c0 35 #:use-module (gnu services shepherd)
c80cd4df 36 #:use-module (gnu services ssh)
db84467a 37 #:use-module (gnu packages admin)
f4bdfe73 38 #:use-module (gnu packages bash)
862e38d5 39 #:use-module (gnu packages bootloaders)
9ce09a76 40 #:use-module (gnu packages certs)
d0f3a672
MO
41 #:use-module (gnu packages fonts)
42 #:use-module (gnu packages fontutils)
af4a761e 43 #:use-module (gnu packages guile)
fc91c17a 44 #:use-module (gnu packages linux)
1e8d398a 45 #:use-module (gnu packages ssh)
b419c7f5 46 #:use-module (gnu packages cryptsetup)
fc91c17a 47 #:use-module (gnu packages package-management)
cc4a2aeb 48 #:use-module (gnu packages disk)
fc91c17a 49 #:use-module (gnu packages texinfo)
dd6b28d1 50 #:use-module (gnu packages compression)
a8cb87ab 51 #:use-module (gnu packages nvi)
e1fbc32a
LC
52 #:use-module (ice-9 match)
53 #:use-module (srfi srfi-26)
ceb39527 54 #:export (installation-os
c55c6985 55 a20-olinuxino-lime-installation-os
4b9e9abb 56 a20-olinuxino-lime2-emmc-installation-os
a7bb327e 57 a20-olinuxino-micro-installation-os
e830c9d0 58 bananapi-m2-ultra-installation-os
84ee3378 59 beaglebone-black-installation-os
07ca9045 60 mx6cuboxi-installation-os
fd5536e3 61 nintendo-nes-classic-edition-installation-os
1b960787 62 novena-installation-os
9f7d6665 63 pine64-plus-installation-os
74e35e8c 64 pinebook-installation-os
6fe16577 65 rk3399-puma-installation-os
4ce4fc50
DM
66 wandboard-installation-os
67 os-with-u-boot))
fc91c17a
LC
68
69;;; Commentary:
70;;;
71;;; This module provides an 'operating-system' definition for use on images
72;;; for USB sticks etc., for the installation of the GNU system.
73;;;
74;;; Code:
75
9d3fb6c7 76\f
126d4c12
LC
77;;;
78;;; Documentation service.
79;;;
80
c7dc6042
LC
81(define %installation-node-names
82 ;; Translated name of the "System Installation" node of the manual. Ideally
83 ;; we'd extract it from the 'guix-manual' gettext domain, but that one is
84 ;; usually not available at run time, hence this hack.
85 '(("de" . "Systeminstallation")
86 ("en" . "System Installation")
55111549 87 ("es" . "Instalación del sistema")
c7dc6042
LC
88 ("fr" . "Installation du système")))
89
126d4c12 90(define (log-to-info tty user)
fc91c17a
LC
91 "Return a script that spawns the Info reader on the right section of the
92manual."
ce8a6dfc 93 (program-file "log-to-info"
c7dc6042
LC
94 #~(let* ((tty (open-file #$(string-append "/dev/" tty)
95 "r0+"))
96 (locale (cadr (command-line)))
97 (language (string-take locale
98 (string-index locale #\_)))
99 (infodir "/run/current-system/profile/share/info")
100 (per-lang (string-append infodir "/guix." language
101 ".info.gz"))
102 (file (if (file-exists? per-lang)
103 per-lang
104 (string-append infodir "/guix.info")))
105 (node (or (assoc-ref '#$%installation-node-names
106 language)
107 "System Installation")))
126d4c12
LC
108 (redirect-port tty (current-output-port))
109 (redirect-port tty (current-error-port))
110 (redirect-port tty (current-input-port))
111
112 (let ((pw (getpwnam #$user)))
113 (setgid (passwd:gid pw))
114 (setuid (passwd:uid pw)))
115
dd6b28d1
LC
116 ;; 'gunzip' is needed to decompress the doc.
117 (setenv "PATH" (string-append #$gzip "/bin"))
118
c7dc6042
LC
119 ;; Change this process' locale so that command-line
120 ;; arguments to 'info' are properly encoded.
121 (catch #t
122 (lambda ()
123 (setlocale LC_ALL locale)
124 (setenv "LC_ALL" locale))
125 (lambda _
126 ;; Sometimes LOCALE itself is not available. In that
127 ;; case pick the one UTF-8 locale that's known to work
128 ;; instead of failing.
129 (setlocale LC_ALL "en_US.utf8")
130 (setenv "LC_ALL" "en_US.utf8")))
131
132 (execl #$(file-append info-reader "/bin/info")
133 "info" "-d" infodir "-f" file "-n" node))))
fc91c17a 134
126d4c12
LC
135(define (documentation-shepherd-service tty)
136 (list (shepherd-service
137 (provision (list (symbol-append 'term- (string->symbol tty))))
138 (requirement '(user-processes host-name udev virtual-terminal))
c7dc6042
LC
139 (start #~(lambda* (#:optional (locale "en_US.utf8"))
140 (fork+exec-command
141 (list #$(log-to-info tty "documentation") locale)
142 #:environment-variables
143 `("GUIX_LOCPATH=/run/current-system/locale"
144 "TERM=linux"))))
126d4c12
LC
145 (stop #~(make-kill-destructor)))))
146
147(define %documentation-users
148 ;; User account for the Info viewer.
149 (list (user-account (name "documentation")
150 (system? #t)
151 (group "nogroup")
152 (home-directory "/var/empty"))))
153
154(define documentation-service-type
155 ;; Documentation viewer service.
156 (service-type (name 'documentation)
157 (extensions
158 (list (service-extension shepherd-root-service-type
159 documentation-shepherd-service)
160 (service-extension account-service-type
161 (const %documentation-users))))
162 (description "Run the Info reader on a tty.")))
163
164\f
83a17b62
LC
165(define %backing-directory
166 ;; Sub-directory used as the backing store for copy-on-write.
167 "/tmp/guix-inst")
168
169(define (make-cow-store target)
170 "Return a gexp that makes the store copy-on-write, using TARGET as the
171backing store. This is useful when TARGET is on a hard disk, whereas the
172current store is on a RAM disk."
83a17b62
LC
173
174 (define (set-store-permissions directory)
175 ;; Set the right perms on DIRECTORY to use it as the store.
176 #~(begin
177 (chown #$directory 0 30000) ;use the fixed 'guixbuild' GID
178 (chmod #$directory #o1775)))
179
180 #~(begin
0adabad7
LC
181 ;; Bind-mount TARGET's /tmp in case we need space to build things.
182 (let ((tmpdir (string-append #$target "/tmp")))
183 (mkdir-p tmpdir)
184 (mount tmpdir "/tmp" "none" MS_BIND))
185
d9565f7d
HG
186 (let* ((rw-dir (string-append target #$%backing-directory))
187 (work-dir (string-append rw-dir "/../.overlayfs-workdir")))
83a17b62 188 (mkdir-p rw-dir)
d9565f7d 189 (mkdir-p work-dir)
83a17b62
LC
190 (mkdir-p "/.rw-store")
191 #$(set-store-permissions #~rw-dir)
192 #$(set-store-permissions "/.rw-store")
193
d9565f7d
HG
194 ;; Mount the overlay, then atomically make it the store.
195 (mount "none" "/.rw-store" "overlay" 0
196 (string-append "lowerdir=" #$(%store-prefix) ","
197 "upperdir=" rw-dir ","
198 "workdir=" work-dir))
199 (mount "/.rw-store" #$(%store-prefix) "" MS_MOVE)
200 (rmdir "/.rw-store"))))
83a17b62 201
0adfe95a 202(define cow-store-service-type
d4053c71 203 (shepherd-service-type
00184239 204 'cow-store
0adfe95a 205 (lambda _
d4053c71 206 (shepherd-service
0adfe95a
LC
207 (requirement '(root-file-system user-processes))
208 (provision '(cow-store))
209 (documentation
210 "Make the store copy-on-write, with writes going to \
211the given target.")
212
213 ;; This is meant to be explicitly started by the user.
214 (auto-start? #f)
215
216 (start #~(case-lambda
217 ((target)
218 #$(make-cow-store #~target)
219 target)
220 (else
221 ;; Do nothing, and mark the service as stopped.
222 #f)))
223 (stop #~(lambda (target)
224 ;; Delete the temporary directory, but leave everything
225 ;; mounted as there may still be processes using it since
6c445817 226 ;; 'user-processes' doesn't depend on us. The 'user-file-systems'
0adfe95a
LC
227 ;; service will unmount TARGET eventually.
228 (delete-file-recursively
229 (string-append target #$%backing-directory))))))))
230
83a17b62
LC
231(define (cow-store-service)
232 "Return a service that makes the store copy-on-write, such that writes go to
233the user's target storage device rather than on the RAM disk."
234 ;; See <http://bugs.gnu.org/18061> for the initial report.
0adfe95a
LC
235 (service cow-store-service-type 'mooooh!))
236
237
238(define (/etc/configuration-files _)
239 "Return a list of tuples representing configuration templates to add to
240/etc."
241 (define (file f)
bae90dc7 242 (local-file (string-append "examples/" f)))
0adfe95a
LC
243
244 (define directory
245 (computed-file "configuration-templates"
4ee96a79
LC
246 (with-imported-modules '((guix build utils))
247 #~(begin
248 (mkdir #$output)
249 (for-each (lambda (file target)
250 (copy-file file
251 (string-append #$output "/"
252 target)))
253 '(#$(file "bare-bones.tmpl")
9f1e39d1 254 #$(file "beaglebone-black.tmpl")
4ee96a79
LC
255 #$(file "desktop.tmpl")
256 #$(file "lightweight-desktop.tmpl"))
257 '("bare-bones.scm"
9f1e39d1 258 "beaglebone-black.scm"
4ee96a79
LC
259 "desktop.scm"
260 "lightweight-desktop.scm"))
261 #t))))
0adfe95a
LC
262
263 `(("configuration" ,directory)))
264
265(define configuration-template-service-type
266 (service-type (name 'configuration-template)
267 (extensions
268 (list (service-extension etc-service-type
269 /etc/configuration-files)))))
270
271(define %configuration-template-service
272 (service configuration-template-service-type #t))
be1c2c54 273
1dac8566 274
61ff0a3a
LC
275(define %nscd-minimal-caches
276 ;; Minimal in-memory caching policy for nscd.
277 (list (nscd-cache (database 'hosts)
278 (positive-time-to-live (* 3600 12))
c96ba2cf
LC
279
280 ;; Do not cache lookup failures at all since they are
281 ;; quite likely (for instance when someone tries to ping a
282 ;; host before networking is functional.)
283 (negative-time-to-live 0)
284
61ff0a3a
LC
285 (persistent? #f)
286 (max-database-size (* 5 (expt 2 20)))))) ;5 MiB
287
58b21e1e
LC
288(define %installation-services
289 ;; List of services of the installation system.
a7961746 290 (let ((motd (plain-file "motd" "
6fb6dd13 291\x1b[1;37mWelcome to the installation of GNU Guix!\x1b[0m
a7961746 292
5a663d87
LC
293\x1b[2m\
294Using this shell, you can carry out the installation process \"manually.\"
295Access documentation at any time by pressing Alt-F2.\x1b[0m
a7961746
MO
296")))
297 (define (normal-tty tty)
298 (mingetty-service (mingetty-configuration (tty tty)
299 (auto-login "root")
300 (login-pause? #t))))
301
302 (define bare-bones-os
303 (load "examples/bare-bones.tmpl"))
304
305 (list (service virtual-terminal-service-type)
306
307 (service kmscon-service-type
308 (kmscon-configuration
309 (virtual-terminal "tty1")
a49d633c 310 (login-program (installer-program))))
a7961746
MO
311
312 (login-service (login-configuration
313 (motd motd)))
314
315 ;; Documentation. The manual is in UTF-8, but
316 ;; 'console-font-service' sets up Unicode support and loads a font
317 ;; with all the useful glyphs like em dash and quotation marks.
126d4c12 318 (service documentation-service-type "tty2")
a7961746
MO
319
320 ;; Documentation add-on.
321 %configuration-template-service
322
323 ;; A bunch of 'root' ttys.
324 (normal-tty "tty3")
325 (normal-tty "tty4")
326 (normal-tty "tty5")
327 (normal-tty "tty6")
328
329 ;; The usual services.
330 (syslog-service)
331
332 ;; The build daemon. Register the hydra.gnu.org key as trusted.
333 ;; This allows the installation process to use substitutes by
334 ;; default.
335 (service guix-service-type
336 (guix-configuration (authorize-key? #t)))
337
338 ;; Start udev so that useful device nodes are available.
339 ;; Use device-mapper rules for cryptsetup & co; enable the CRDA for
340 ;; regulations-compliant WiFi access.
341 (udev-service #:rules (list lvm2 crda))
342
343 ;; Add the 'cow-store' service, which users have to start manually
344 ;; since it takes the installation directory as an argument.
345 (cow-store-service)
346
13fd0a30 347 ;; Install Unicode support and a suitable font.
a7961746 348 (service console-font-service-type
13fd0a30
LC
349 (map (match-lambda
350 ("tty2"
351 ;; Use a font that contains characters such as
352 ;; curly quotes as found in the manual.
353 '("tty2" . "LatGrkCyr-8x16"))
354 (tty
355 ;; Use a font that doesn't have more than 256
356 ;; glyphs so that we can use colors with varying
357 ;; brightness levels (see note in setfont(8)).
358 `(,tty . "lat9u-16")))
a7961746
MO
359 '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6")))
360
361 ;; To facilitate copy/paste.
362 (service gpm-service-type)
363
364 ;; Add an SSH server to facilitate remote installs.
365 (service openssh-service-type
366 (openssh-configuration
367 (port-number 22)
368 (permit-root-login #t)
369 ;; The root account is passwordless, so make sure
370 ;; a password is set before allowing logins.
371 (allow-empty-passwords? #f)
372 (password-authentication? #t)
373
374 ;; Don't start it upfront.
375 (%auto-start? #f)))
376
377 ;; Since this is running on a USB stick with a overlayfs as the root
378 ;; file system, use an appropriate cache configuration.
379 (nscd-service (nscd-configuration
380 (caches %nscd-minimal-caches)))
381
382 ;; Having /bin/sh is a good idea. In particular it allows Tramp
383 ;; connections to this system to work.
384 (service special-files-service-type
385 `(("/bin/sh" ,(file-append (canonical-package bash)
386 "/bin/sh"))))
387
388 ;; Loopback device, needed by OpenSSH notably.
389 (service static-networking-service-type
390 (list (static-networking (interface "lo")
391 (ip "127.0.0.1")
392 (requirement '())
393 (provision '(loopback)))))
394
395 (service wpa-supplicant-service-type)
396 (dbus-service)
397 (service connman-service-type
398 (connman-configuration
399 (disable-vpn? #t)))
400
401 ;; Keep a reference to BARE-BONES-OS to make sure it can be
402 ;; installed without downloading/building anything. Also keep the
403 ;; things needed by 'profile-derivation' to minimize the amount of
404 ;; download.
405 (service gc-root-service-type
406 (list bare-bones-os
407 glibc-utf8-locales
408 texinfo
409 (canonical-package guile-2.2))))))
fc91c17a
LC
410
411(define %issue
412 ;; Greeting.
413 "
8638362f 414\x1b[1;37mThis is an installation image of the GNU system. Welcome.\x1b[0m
fc91c17a 415
8638362f 416\x1b[1;33mUse Alt-F2 for documentation.\x1b[0m
fc91c17a
LC
417")
418
419(define installation-os
420 ;; The operating system used on installation images for USB sticks etc.
421 (operating-system
422 (host-name "gnu")
423 (timezone "Europe/Paris")
9cd0dfaa 424 (locale "en_US.utf8")
fdfdecdb
TGR
425 (bootloader (bootloader-configuration
426 (bootloader grub-bootloader)
427 (target "/dev/sda")))
0134ebc5
LC
428 (label (string-append "GNU Guix installation "
429 (package-version guix)))
430
78591912
LC
431 ;; XXX: The AMD Radeon driver is reportedly broken, which makes kmscon
432 ;; non-functional:
433 ;; <https://lists.gnu.org/archive/html/guix-devel/2019-03/msg00441.html>.
434 ;; Thus, blacklist it.
519177ad 435 (kernel-arguments '("quiet" "modprobe.blacklist=radeon"))
78591912 436
fc91c17a
LC
437 (file-systems
438 ;; Note: the disk image build code overrides this root file system with
439 ;; the appropriate one.
ee03b75d
LC
440 (cons* (file-system
441 (mount-point "/")
59e80445 442 (device (file-system-label "Guix_image"))
ee03b75d
LC
443 (type "ext4"))
444
d9565f7d
HG
445 ;; Make /tmp a tmpfs instead of keeping the overlayfs. This
446 ;; originally was used for unionfs because FUSE creates
447 ;; '.fuse_hiddenXYZ' files for each open file, and this confuses
448 ;; Guix's test suite, for instance (see
449 ;; <http://bugs.gnu.org/23056>). We keep this for overlayfs to be
795ec760 450 ;; on the safe side.
ee03b75d
LC
451 (file-system
452 (mount-point "/tmp")
453 (device "none")
ee03b75d
LC
454 (type "tmpfs")
455 (check? #f))
456
0feefb53
LC
457 ;; XXX: This should be %BASE-FILE-SYSTEMS but we don't need
458 ;; elogind's cgroup file systems.
459 (list %pseudo-terminal-file-system
460 %shared-memory-file-system
461 %immutable-store)))
fc91c17a 462
a7961746
MO
463 (users (list (user-account
464 (name "guest")
465 (group "users")
466 (supplementary-groups '("wheel")) ; allow use of sudo
467 (password "")
cf848cc0 468 (comment "Guest of GNU"))))
fc91c17a
LC
469
470 (issue %issue)
58b21e1e 471 (services %installation-services)
fc91c17a 472
903ae630
LC
473 ;; We don't need setuid programs, except for 'passwd', which can be handy
474 ;; if one is to allow remote SSH login to the machine being installed.
475 (setuid-programs (list (file-append shadow "/bin/passwd")))
fc91c17a
LC
476
477 (pam-services
478 ;; Explicitly allow for empty passwords.
479 (base-pam-services #:allow-empty-passwords? #t))
480
a6312f1d 481 (packages (cons* (canonical-package glibc) ;for 'tzselect' & co.
72524ae8 482 parted gptfdisk ddrescue
d0f3a672
MO
483 fontconfig
484 font-dejavu font-gnu-unifont
7eda0c56 485 grub ;mostly so xrefs to its manual work
b419c7f5 486 cryptsetup
f0fbf2c1 487 mdadm
f731529e 488 dosfstools ;mkfs.fat, for the UEFI boot partition
3a9cfba8 489 btrfs-progs
1e8d398a 490 openssh ;we already have sshd, having ssh/scp can help
1ce6f43a 491 wireless-tools iw wpa-supplicant-minimal iproute
8f297d42
LC
492 ;; XXX: We used to have GNU fdisk here, but as of version
493 ;; 2.0.0a, that pulls Guile 1.8, which takes unreasonable
494 ;; space; furthermore util-linux's fdisk is already
495 ;; available here, so we keep that.
f4bdfe73 496 bash-completion
a8cb87ab 497 nvi ;:wq!
0b767e3d 498 nss-certs ; To access HTTPS, use git, etc.
6f436c54 499 %base-packages))))
fc91c17a 500
4ce4fc50
DM
501(define* (os-with-u-boot os board #:key (bootloader-target "/dev/mmcblk0")
502 (triplet "arm-linux-gnueabihf"))
503 "Given OS, amend it with the u-boot bootloader for BOARD,
504installed to BOOTLOADER-TARGET (a drive), compiled for TRIPLET.
505
506If you want a serial console, make sure to specify one in your
507operating-system's kernel-arguments (\"console=ttyS0\" or similar)."
508 (operating-system (inherit os)
509 (bootloader (bootloader-configuration
510 (bootloader (bootloader (inherit u-boot-bootloader)
511 (package (make-u-boot-package board triplet))))
512 (target bootloader-target)))))
513
fccdc8c8
DM
514(define* (embedded-installation-os bootloader bootloader-target tty
515 #:key (extra-modules '()))
516 "Return an installation os for embedded systems.
517The initrd gets the extra modules EXTRA-MODULES.
518A getty is provided on TTY.
519The bootloader BOOTLOADER is installed to BOOTLOADER-TARGET."
ceb39527
MO
520 (operating-system
521 (inherit installation-os)
522 (bootloader (bootloader-configuration
fccdc8c8
DM
523 (bootloader bootloader)
524 (target bootloader-target)))
ceb39527 525 (kernel linux-libre)
5a9902c8
DM
526 (kernel-arguments
527 (cons (string-append "console=" tty)
528 (operating-system-user-kernel-arguments installation-os)))
bc499b11 529 (initrd-modules (append extra-modules %base-initrd-modules))))
ceb39527 530
fccdc8c8
DM
531(define beaglebone-black-installation-os
532 (embedded-installation-os u-boot-beaglebone-black-bootloader
533 "/dev/sda"
534 "ttyO0"
535 #:extra-modules
536 ;; This module is required to mount the sd card.
537 '("omap_hsmmc")))
538
539
0db22b32 540(define a20-olinuxino-lime-installation-os
c55c6985
DM
541 (embedded-installation-os u-boot-a20-olinuxino-lime-bootloader
542 "/dev/mmcblk0" ; SD card storage
543 "ttyS0"))
544
4b9e9abb 545(define a20-olinuxino-lime2-emmc-installation-os
fccdc8c8
DM
546 (embedded-installation-os u-boot-a20-olinuxino-lime2-bootloader
547 "/dev/mmcblk1" ; eMMC storage
548 "ttyS0"))
a7bb327e
DM
549
550(define a20-olinuxino-micro-installation-os
fccdc8c8
DM
551 (embedded-installation-os u-boot-a20-olinuxino-micro-bootloader
552 "/dev/mmcblk0" ; SD card storage
553 "ttyS0"))
4b9e9abb 554
e830c9d0
DM
555(define bananapi-m2-ultra-installation-os
556 (embedded-installation-os u-boot-bananapi-m2-ultra-bootloader
fccdc8c8
DM
557 "/dev/mmcblk1" ; eMMC storage
558 "ttyS0"))
30aeb846 559
07ca9045
VC
560(define mx6cuboxi-installation-os
561 (embedded-installation-os u-boot-mx6cuboxi-bootloader
562 "/dev/mmcblk0" ; SD card storage
563 "ttymxc0"))
564
1b960787
VC
565(define novena-installation-os
566 (embedded-installation-os u-boot-novena-bootloader
567 "/dev/mmcblk1" ; SD card storage
568 "ttymxc1"))
569
84ee3378
DM
570(define nintendo-nes-classic-edition-installation-os
571 (embedded-installation-os u-boot-nintendo-nes-classic-edition-bootloader
572 "/dev/mmcblk0" ; SD card (solder it yourself)
573 "ttyS0"))
574
9f7d6665
VC
575(define pine64-plus-installation-os
576 (embedded-installation-os u-boot-pine64-plus-bootloader
577 "/dev/mmcblk0" ; SD card storage
578 "ttyS0"))
579
74e35e8c
VC
580(define pinebook-installation-os
581 (embedded-installation-os u-boot-pinebook-bootloader
582 "/dev/mmcblk0" ; SD card storage
583 "ttyS0"))
584
6fe16577
VC
585(define rk3399-puma-installation-os
586 (embedded-installation-os u-boot-puma-rk3399-bootloader
587 "/dev/mmcblk0" ; SD card storage
588 "ttyS0"))
589
fd5536e3
VC
590(define wandboard-installation-os
591 (embedded-installation-os u-boot-wandboard-bootloader
592 "/dev/mmcblk0" ; SD card storage
593 "ttymxc0"))
594
ceb39527 595;; Return the default os here so 'guix system' can consume it directly.
fc91c17a
LC
596installation-os
597
598;;; install.scm ends here