1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-12 15:24:14 +03:00

modules/initrd-kernel: Fix eval with shared rootfs kernel stub

The new bootspec feature, now enabled by default, refers to the
`modDirVersion` field, which was not present in that stub implementation
of the kernel package interface.

This fixes evaluation on a system without a kernel (shared rootfs).
This commit is contained in:
Samuel Dionne-Riel 2023-05-06 16:15:41 -04:00
parent 488485342a
commit 994e9a9456

View File

@ -204,6 +204,7 @@ in
baseVersion = "3.18";
kernelOlder = lib.versionOlder baseVersion;
kernelAtLeast = lib.versionAtLeast baseVersion;
modDirVersion = "99";
};
version = "99";
} "mkdir $out; touch $out/no-kernel"