zfs_ensure_mounted: cleanup test

This commit is contained in:
Simon Gardling 2025-10-24 13:46:22 -04:00
parent 8aabd1466e
commit a455d592b4
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -30,27 +30,22 @@ testPkgs.testers.runNixOSTest {
emptyDiskImages = [ emptyDiskImages = [
4096 4096
]; ];
useBootLoader = true;
useEFIBoot = true;
}; };
boot.loader.systemd-boot.enable = true;
boot.loader.timeout = 0;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostId = "deadbeef"; networking.hostId = "deadbeef";
boot.kernelPackages = config.boot.kernelPackages; boot.kernelPackages = config.boot.kernelPackages;
boot.zfs.package = config.boot.zfs.package; boot.zfs.package = config.boot.zfs.package;
boot.supportedFilesystems = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ];
environment.systemPackages = [ environment.systemPackages = with pkgs; [
pkgs.parted parted
pkgs.ensureZfsMounts ensureZfsMounts
]; ];
systemd.services.foobar = { systemd.services.foobar = {
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
RemainAfterExit = true; RemainAfterExit = true;
ExecStart = "${lib.getExe pkgs.bash} -c \"true\""; ExecStart = lib.getExe pkgs.bash;
}; };
}; };
@ -58,7 +53,7 @@ testPkgs.testers.runNixOSTest {
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
RemainAfterExit = true; RemainAfterExit = true;
ExecStart = "${lib.getExe pkgs.bash} -c \"true\""; ExecStart = lib.getExe pkgs.bash;
}; };
}; };
}; };