From 609fd993435ffc5a531c2cd916bb266a2f5ae6cc Mon Sep 17 00:00:00 2001 From: Andrew Kidd Date: Fri, 3 Jan 2025 16:06:28 +0000 Subject: [PATCH] /mnt-root --- net-image/net-image.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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";