From 93822775a96b8c94ca462dd6361fcce8de9c6521 Mon Sep 17 00:00:00 2001 From: Yureka Date: Sat, 3 Aug 2024 18:10:59 +0200 Subject: [PATCH] baremetal-builders: do not create swapfile on rootfs when netbooting --- services/baremetal-builder/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/baremetal-builder/default.nix b/services/baremetal-builder/default.nix index 7f3ac4d..7f57d4d 100644 --- a/services/baremetal-builder/default.nix +++ b/services/baremetal-builder/default.nix @@ -79,7 +79,7 @@ in options = [ "fmask=0022" "dmask=0022" ]; }; - swapDevices = [ + swapDevices = lib.optionals (!cfg.netboot) [ { device = "/swapfile"; size = 50 * 1024; # 50GiB