Ludovic Courtès 47960b5526
system: Improve 'read-boot-parameters' incompatibility diagnostic.
Previously, when reading an incompatible "parameters" file, 'guix
system' would print a warning and then crash with a wrong-type-arg
backtrace because code expects 'read-boot-parameters' to always return a
<boot-parameters> record.

* gnu/system.scm (read-boot-parameters): Upon incompatibility, raise an
error instead of returning #f.  Also raise a '&fix-hint' condition.
* tests/boot-parameters.scm ("read, construction, mandatory fields"):
Define 'test-read-boot-parameters' as a macro; expect
'formatted-message?' exceptions rather than #f returns.
2022-03-16 15:48:52 +01:00
..
2021-09-17 01:27:40 +02:00
2020-12-21 17:47:35 +01:00
2022-02-14 11:23:07 +01:00
2020-12-09 22:25:17 +01:00
2021-09-28 22:00:47 +02:00
2021-04-12 18:42:22 +02:00
2021-12-23 10:54:00 +01:00
2021-08-12 12:34:13 +02:00
2019-03-24 00:13:53 +01:00
2019-04-10 17:09:47 +02:00
2019-06-14 21:57:39 +02:00