aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-02-18 15:42:07 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-03-01 10:30:17 -0500
commit4a3b8f4d5981de444b3590fca8dfa1facb768933 (patch)
treea4b11ced58ed741dfaeee906eeabd2a7275d9db0 /tests
parenta53ea46bfc219a2c184fbf3ce8f3e3ba3f539a7d (diff)
downloadguix-4a3b8f4d5981de444b3590fca8dfa1facb768933.tar
guix-4a3b8f4d5981de444b3590fca8dfa1facb768933.tar.gz
system: Add a version field to the <boot-parameters> record.
This version field exposes the (already present) version information of a boot parameters file. * gnu/system.scm (%boot-parameters-version): New variable. (<boot-parameters>)[version]: New field. (read-boot-parameters): Use it. (operating-system-boot-parameters-file): Likewise. * tests/boot-parameters.scm (test-read-boot-parameters): Use %boot-parameters-version as the default version value in the template.
Diffstat (limited to 'tests')
-rw-r--r--tests/boot-parameters.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/boot-parameters.scm b/tests/boot-parameters.scm
index b2799d0596..d4b680df2e 100644
--- a/tests/boot-parameters.scm
+++ b/tests/boot-parameters.scm
@@ -101,7 +101,7 @@
;; Call read-boot-parameters with the desired string as input.
(define* (test-read-boot-parameters
#:key
- (version 0)
+ (version %boot-parameters-version)
(bootloader-name 'grub)
(bootloader-menu-entries '())
(label %default-label)