Skip to content

Commit

Permalink
Merge pull request #1672 from craddm/tmpfs
Browse files Browse the repository at this point in the history
Use memory for the /tmp directory
  • Loading branch information
JimMadge authored Nov 17, 2023
2 parents 0e20cf6 + 94641d8 commit edd7a9a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,10 @@ runcmd:
- systemctl enable data.automount
- systemctl enable output.automount

# Use tmpfs so tmp is in memory where possible rather than entirely on disk
- echo ">=== Configure tmpfs... ===<"
- echo "tmpfs /tmp tmpfs rw,nosuid,nodev,noexec" | tee -a /etc/fstab

# List fstab and the volume mount order. Note that blobfuse mounts are not using fstab
- echo ">=== Checking disk mounts... ===<"
- grep -v -e '^[[:space:]]*$' /etc/fstab | sed 's|^| /etc/fstab |'
Expand Down

0 comments on commit edd7a9a

Please sign in to comment.