Skip to content

Commit

Permalink
podvm-image: don't mount tmpfs on /usr
Browse files Browse the repository at this point in the history
This is a prerequisite for using peer pods with GPUs, as they require an OCI hook to facilitate GPU attachment to containers, which is expected in `/usr/share` by default. If we mount a tmpfs on `/usr`, the files placed in the initial image through the `contents` attribute of the repart builder will become invisible, so we now only mount it at `/usr/bin` instead.
  • Loading branch information
msanft committed Oct 21, 2024
1 parent f5da52d commit 0db5c0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nixos/image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
Minimize = "best";
# We need to ensure that mountpoints are available.
# TODO (Maybe): This could be done more elegantly with CopyFiles and a skeleton tree in the vcs.
MakeDirectories = "/bin /boot /dev /etc /home /lib /lib64 /mnt /nix /opt /proc /root /run /srv /sys /tmp /usr /var";
MakeDirectories = "/bin /boot /dev /etc /home /lib /lib64 /mnt /nix /opt /proc /root /run /srv /sys /tmp /usr/bin /var";
};
};

Expand Down
2 changes: 1 addition & 1 deletion packages/nixos/system.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"/var"
"/etc"
"/bin"
"/usr"
"/usr/bin"
"/tmp"
"/lib"
"/root"
Expand Down

0 comments on commit 0db5c0e

Please sign in to comment.