@@ -0,0 +1,24 @@
1+import ./make-test.nix ({ pkgs, ...} : {
2+ name = "kernel-params";
3+ meta = with pkgs.stdenv.lib.maintainers; {
4+ maintainers = [ nequissimus ];
5+ };
6+
7+ machine = { config, lib, pkgs, ... }:
8+ {
9+ boot.kernelPackages = pkgs.linuxPackages;
10+ boot.kernelParams = [
11+ "nohibernate"
12+ "page_poison=1"
13+ "vsyscall=none"
14+ ];
15+ };
16+
17+ testScript =
18+ ''
19+ $machine->fail("cat /proc/cmdline | grep page_poison=0");
20+ $machine->succeed("cat /proc/cmdline | grep nohibernate");
21+ $machine->succeed("cat /proc/cmdline | grep page_poison=1");
22+ $machine->succeed("cat /proc/cmdline | grep vsyscall=none");
23+ '';
24+})