diff --git a/net-image/net-image.nix b/net-image/net-image.nix index c385283..0420bf6 100644 --- a/net-image/net-image.nix +++ b/net-image/net-image.nix @@ -100,16 +100,15 @@ in config = { boot.initrd.network.enable = true; + boot.initrd.postMountCommands = '' + mkdir -p /mnt-root + ''; fileSystems = { "/boot/firmware" = { device = "${config.netImage.nfsRoot}/boot/firmware"; fsType = "nfs"; }; - "/mnt-root" = { - device = "${config.netImage.nfsRoot}"; - fsType = "nfs"; - }; "/" = { device = "${config.netImage.nfsRoot}"; fsType = "nfs";