builders: do not mount / and /boot on netboot systems

This commit is contained in:
Yureka 2024-08-03 20:01:39 +02:00
parent 830dcbf6bc
commit aeb8102ae4

View file

@ -57,7 +57,7 @@ in
boot.kernel.sysctl."fs.xfs.xfssyncd_centisecs" = "12000";
fileSystems = lib.mkMerge [
{
(lib.mkIf (!cfg.netboot) {
"/" = {
device = "/dev/disk/by-label/root";
fsType = "xfs";
@ -68,8 +68,8 @@ in
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
}
(lib.mkIf (!cfg.netboot) {
})
{
"/mnt" = {
device = "/dev/disk/by-label/hydra";
fsType = "xfs";
@ -81,7 +81,7 @@ in
device = "/mnt/tmp";
options = [ "bind" ];
};
})
}
];
swapDevices = lib.optionals (!cfg.netboot) [