builders: do not mount / and /boot on netboot systems
This commit is contained in:
parent
830dcbf6bc
commit
aeb8102ae4
|
@ -57,7 +57,7 @@ in
|
||||||
|
|
||||||
boot.kernel.sysctl."fs.xfs.xfssyncd_centisecs" = "12000";
|
boot.kernel.sysctl."fs.xfs.xfssyncd_centisecs" = "12000";
|
||||||
fileSystems = lib.mkMerge [
|
fileSystems = lib.mkMerge [
|
||||||
{
|
(lib.mkIf (!cfg.netboot) {
|
||||||
"/" = {
|
"/" = {
|
||||||
device = "/dev/disk/by-label/root";
|
device = "/dev/disk/by-label/root";
|
||||||
fsType = "xfs";
|
fsType = "xfs";
|
||||||
|
@ -68,8 +68,8 @@ in
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
(lib.mkIf (!cfg.netboot) {
|
{
|
||||||
"/mnt" = {
|
"/mnt" = {
|
||||||
device = "/dev/disk/by-label/hydra";
|
device = "/dev/disk/by-label/hydra";
|
||||||
fsType = "xfs";
|
fsType = "xfs";
|
||||||
|
@ -81,7 +81,7 @@ in
|
||||||
device = "/mnt/tmp";
|
device = "/mnt/tmp";
|
||||||
options = [ "bind" ];
|
options = [ "bind" ];
|
||||||
};
|
};
|
||||||
})
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
swapDevices = lib.optionals (!cfg.netboot) [
|
swapDevices = lib.optionals (!cfg.netboot) [
|
||||||
|
|
Loading…
Reference in a new issue