Skip to content
Unverified Commit e8c1ff9e authored by Niklas Hambüchen's avatar Niklas Hambüchen Committed by GitHub
Browse files

grub: Fix incorrect upgrade to new `jsonStateLine`. See #85895. (#92520)

Fixes error

    Can't use an undefined value as an ARRAY reference at /nix/store/...-install-grub.pl line 642, <FILE> line 5.

with `/boot/grub/state` being:

```
grub
2.04
no
/dev/sda
/boot

```

I am not sure where the trailing empty line can come from; the script does not
seem to write it. In any case, now we handle that situation as well.

Further, ensure that `extraGrubInstallArgs` defaults to the empty array
if its key is not present in the `jsonState`.
parent 11eb84bb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment