summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-06-13 22:34:00 +0200
committerLudovic Courtès <ludo@gnu.org>2024-06-13 22:34:00 +0200
commitaf2ca0226fbb68d9228f286c19ddd3b84d07575f (patch)
tree9a9835bcda0b667a818fa0ae525c7eae68d722a0
parent8355756d1a9e12b23ac92cb36b82fe2e8381b158 (diff)
tests: Adjust ‘guix system’ test for EFI bootloader.
This is a followup to e5078ff3210f4a9863b641a60430b2cb3c9c15ee, which broke this test: $ guix system disk-image -n gnu/system/examples/desktop.tmpl guix system: warning: 'disk-image' is deprecated: use 'image' instead guix system: error: EFI bootloader required with GPT partitioning * tests/guix-system.sh: Use ‘guix system image’ instead of ‘guix system disk-image’. Pass ‘-t efi-raw’ for ‘desktop.tmpl’. Change-Id: I6877085ab33d9e8b471315b806fed22a7d1241a3
-rw-r--r--tests/guix-system.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/guix-system.sh b/tests/guix-system.sh
index 29e490c3d48..99147cf332c 100644
--- a/tests/guix-system.sh
+++ b/tests/guix-system.sh
@@ -1,5 +1,5 @@
1# GNU Guix --- Functional package management for GNU 1# GNU Guix --- Functional package management for GNU
2# Copyright © 2014-2022 Ludovic Courtès <ludo@gnu.org> 2# Copyright © 2014-2022, 2024 Ludovic Courtès <ludo@gnu.org>
3# Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> 3# Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
4# Copyright © 2018 Chris Marusich <cmmarusich@gmail.com> 4# Copyright © 2018 Chris Marusich <cmmarusich@gmail.com>
5# 5#
@@ -355,17 +355,22 @@ for example in gnu/system/examples/*.tmpl; do
355 # Skip it. 355 # Skip it.
356 continue 356 continue
357 ;; 357 ;;
358 *desktop*)
359 # This image uses 'grub-efi-bootloader' so it needs a GPT
360 # partition.
361 options="-t efi-raw --system=x86_64-linux";;
358 *) 362 *)
359 options="" 363 options=""
360 ;; 364 ;;
361 esac 365 esac
362 guix system -n disk-image $options "$example" 366 guix system -n image $options "$example"
363done 367done
364 368
365# Make sure the desktop image can be built on major architectures. 369# Make sure the desktop image can be built on major architectures.
366for system in x86_64-linux aarch64-linux 370for system in x86_64-linux aarch64-linux
367do 371do
368 guix system -n image -s "$system" gnu/system/examples/desktop.tmpl 372 guix system -n image -s "$system" -t efi-raw \
373 gnu/system/examples/desktop.tmpl
369done 374done
370 375
371# Verify that the images can be built. 376# Verify that the images can be built.