summaryrefslogtreecommitdiff
path: root/gnu/tests
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2017-09-03 01:19:38 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2017-12-06 15:02:24 +0100
commitfdfdecdb7ebfd05b4ae66cc5140078dbfc10fc35 (patch)
treea58dc6e21d8bf7458efb0c48a90947f61eab844a /gnu/tests
parent6c441efc5a554bdb6a0139d552dbb38fecbd93ba (diff)
gnu, doc, tests: Use ‘bootloader-configuration’ everywhere.
* doc/guix.texi (Proceeding with the Installation): Replace the old-style ‘grub-configuration’ with the newer ‘bootloader-configuration’ syntax. * gnu/system/examples/vm-image.tmpl: Likewise. * gnu/system/install.scm (installation-os): Likewise. * gnu/tests.scm (%simple-os): Likewise. * gnu/tests/install.scm (%minimal-os, %minimal-os-on-vda, %separate-home-os) (%separate-store-os, %raid-root-os, %encrypted-root-os, %btrfs-root-os): Likewise. * gnu/tests/nfs.scm (%base-os): Likewise. * tests/guix-system.scm (OS_BASE, make_user_config): Likewise. * tests/system.scm (%os, %os-with-mapped-device): Likewise.
Diffstat (limited to 'gnu/tests')
-rw-r--r--gnu/tests/install.scm29
-rw-r--r--gnu/tests/nfs.scm6
2 files changed, 27 insertions, 8 deletions
diff --git a/gnu/tests/install.scm b/gnu/tests/install.scm
index 0e97de0a878..3ac4a579da1 100644
--- a/gnu/tests/install.scm
+++ b/gnu/tests/install.scm
@@ -1,5 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016, 2017 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2016, 2017 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
3;;; 4;;;
4;;; This file is part of GNU Guix. 5;;; This file is part of GNU Guix.
5;;; 6;;;
@@ -60,7 +61,9 @@
60 (timezone "Europe/Paris") 61 (timezone "Europe/Paris")
61 (locale "en_US.UTF-8") 62 (locale "en_US.UTF-8")
62 63
63 (bootloader (grub-configuration (target "/dev/vdb"))) 64 (bootloader (bootloader-configuration
65 (bootloader grub-bootloader)
66 (target "/dev/vdb")))
64 (kernel-arguments '("console=ttyS0")) 67 (kernel-arguments '("console=ttyS0"))
65 (file-systems (cons (file-system 68 (file-systems (cons (file-system
66 (device "my-root") 69 (device "my-root")
@@ -343,7 +346,9 @@ per %test-installed-os, this test is expensive in terms of CPU and storage.")
343 (timezone "Europe/Paris") 346 (timezone "Europe/Paris")
344 (locale "en_US.UTF-8") 347 (locale "en_US.UTF-8")
345 348
346 (bootloader (grub-configuration (target "/dev/vda"))) 349 (bootloader (bootloader-configuration
350 (bootloader grub-bootloader)
351 (target "/dev/vda")))
347 (kernel-arguments '("console=ttyS0")) 352 (kernel-arguments '("console=ttyS0"))
348 (file-systems (cons (file-system 353 (file-systems (cons (file-system
349 (device "my-root") 354 (device "my-root")
@@ -418,7 +423,9 @@ reboot\n")
418 (timezone "Europe/Paris") 423 (timezone "Europe/Paris")
419 (locale "en_US.utf8") 424 (locale "en_US.utf8")
420 425
421 (bootloader (grub-configuration (target "/dev/vdb"))) 426 (bootloader (bootloader-configuration
427 (bootloader grub-bootloader)
428 (target "/dev/vdb")))
422 (kernel-arguments '("console=ttyS0")) 429 (kernel-arguments '("console=ttyS0"))
423 (file-systems (cons* (file-system 430 (file-systems (cons* (file-system
424 (device "my-root") 431 (device "my-root")
@@ -476,7 +483,9 @@ partition. In particular, home directories must be correctly created (see
476 (timezone "Europe/Paris") 483 (timezone "Europe/Paris")
477 (locale "en_US.UTF-8") 484 (locale "en_US.UTF-8")
478 485
479 (bootloader (grub-configuration (target "/dev/vdb"))) 486 (bootloader (bootloader-configuration
487 (bootloader grub-bootloader)
488 (target "/dev/vdb")))
480 (kernel-arguments '("console=ttyS0")) 489 (kernel-arguments '("console=ttyS0"))
481 (file-systems (cons* (file-system 490 (file-systems (cons* (file-system
482 (device "root-fs") 491 (device "root-fs")
@@ -552,7 +561,9 @@ where /gnu lives on a separate partition.")
552 (timezone "Europe/Paris") 561 (timezone "Europe/Paris")
553 (locale "en_US.utf8") 562 (locale "en_US.utf8")
554 563
555 (bootloader (grub-configuration (target "/dev/vdb"))) 564 (bootloader (bootloader-configuration
565 (bootloader grub-bootloader)
566 (target "/dev/vdb")))
556 (kernel-arguments '("console=ttyS0")) 567 (kernel-arguments '("console=ttyS0"))
557 (initrd (lambda (file-systems . rest) 568 (initrd (lambda (file-systems . rest)
558 ;; Add a kernel module for RAID-0 (aka. "stripe"). 569 ;; Add a kernel module for RAID-0 (aka. "stripe").
@@ -635,7 +646,9 @@ by 'mdadm'.")
635 (timezone "Europe/Paris") 646 (timezone "Europe/Paris")
636 (locale "en_US.UTF-8") 647 (locale "en_US.UTF-8")
637 648
638 (bootloader (grub-configuration (target "/dev/vdb"))) 649 (bootloader (bootloader-configuration
650 (bootloader grub-bootloader)
651 (target "/dev/vdb")))
639 652
640 ;; Note: Do not pass "console=ttyS0" so we can use our passphrase prompt 653 ;; Note: Do not pass "console=ttyS0" so we can use our passphrase prompt
641 ;; detection logic in 'enter-luks-passphrase'. 654 ;; detection logic in 'enter-luks-passphrase'.
@@ -762,7 +775,9 @@ build (current-guix) and then store a couple of full system images.")
762 (timezone "Europe/Paris") 775 (timezone "Europe/Paris")
763 (locale "en_US.UTF-8") 776 (locale "en_US.UTF-8")
764 777
765 (bootloader (grub-configuration (target "/dev/vdb"))) 778 (bootloader (bootloader-configuration
779 (bootloader grub-bootloader)
780 (target "/dev/vdb")))
766 (kernel-arguments '("console=ttyS0")) 781 (kernel-arguments '("console=ttyS0"))
767 (file-systems (cons (file-system 782 (file-systems (cons (file-system
768 (device "my-root") 783 (device "my-root")
diff --git a/gnu/tests/nfs.scm b/gnu/tests/nfs.scm
index 889f578d018..d58cf7aefd3 100644
--- a/gnu/tests/nfs.scm
+++ b/gnu/tests/nfs.scm
@@ -2,6 +2,7 @@
2;;; Copyright © 2016, 2017 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2016, 2017 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2016 John Darrington <jmd@gnu.org> 3;;; Copyright © 2016 John Darrington <jmd@gnu.org>
4;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> 4;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
5;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
5;;; 6;;;
6;;; This file is part of GNU Guix. 7;;; This file is part of GNU Guix.
7;;; 8;;;
@@ -20,6 +21,7 @@
20 21
21(define-module (gnu tests nfs) 22(define-module (gnu tests nfs)
22 #:use-module (gnu tests) 23 #:use-module (gnu tests)
24 #:use-module (gnu bootloader)
23 #:use-module (gnu bootloader grub) 25 #:use-module (gnu bootloader grub)
24 #:use-module (gnu system) 26 #:use-module (gnu system)
25 #:use-module (gnu system file-systems) 27 #:use-module (gnu system file-systems)
@@ -41,7 +43,9 @@
41 (timezone "Europe/Berlin") 43 (timezone "Europe/Berlin")
42 (locale "en_US.UTF-8") 44 (locale "en_US.UTF-8")
43 45
44 (bootloader (grub-configuration (target "/dev/sdX"))) 46 (bootloader (bootloader-configuration
47 (bootloader grub-bootloader)
48 (target "/dev/sdX")))
45 (file-systems %base-file-systems) 49 (file-systems %base-file-systems)
46 (users %base-user-accounts) 50 (users %base-user-accounts)
47 (packages (cons* 51 (packages (cons*