forked from the-distro/infra
baremetal-builders: do not create swapfile on rootfs when netbooting
This commit is contained in:
parent
dd028656ac
commit
93822775a9
|
@ -79,7 +79,7 @@ in
|
|||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
swapDevices = lib.optionals (!cfg.netboot) [
|
||||
{
|
||||
device = "/swapfile";
|
||||
size = 50 * 1024; # 50GiB
|
||||
|
|
Loading…
Reference in a new issue