From 87a44ef5c1f7865c399c99d59d3f31d69e1f83eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 19 Sep 2023 06:55:17 +0200 Subject: [PATCH] tests: set linux_latest as the default kernel --- tests/build-profile.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/build-profile.nix b/tests/build-profile.nix index 96392a8..bdde5df 100644 --- a/tests/build-profile.nix +++ b/tests/build-profile.nix @@ -1,11 +1,15 @@ { profile }: let - shim = { config, ... }: { + shim = { config, lib, pkgs, ... }: { boot.loader.systemd-boot.enable = !config.boot.loader.generic-extlinux-compatible.enable && !config.boot.loader.raspberryPi.enable; # we forcefully disable grub here just for testing purposes, even though some profiles might still use grub in the end. boot.loader.grub.enable = false; + # so we can have assertions that require a certain minimum kernel version, + # We use a priority of 1200 here, which is higher than the default of 1000 + boot.kernelPackages = lib.mkOverride 1200 pkgs.linuxPackages_latest; + fileSystems."/" = { device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000"; fsType = "btrfs";