Delay the mount until the network is ready

This commit is contained in:
Rodrigo Arias 2023-09-18 16:07:46 +02:00
parent e6014511f5
commit 8c11c7460a

View File

@ -26,6 +26,10 @@
device = "overlay"; device = "overlay";
fsType = "overlay"; fsType = "overlay";
options = [ options = [
# We need the local-fs.target to be ready, so the network interfaces can
# be configured to the network.target is reached. So make this a netdev
# mount.
"_netdev"
"lowerdir=/mnt/hut-nix-store,upperdir=/nix/store,workdir=/mnt/nix-work" "lowerdir=/mnt/hut-nix-store,upperdir=/nix/store,workdir=/mnt/nix-work"
"x-systemd.requires-mounts-for=/nix/store" "x-systemd.requires-mounts-for=/nix/store"
# We need to wait for the NFS mount # We need to wait for the NFS mount