Skip to content

Commit

Permalink
fedora: increase /tmp tmpfs size
Browse files Browse the repository at this point in the history
By default we only get 50% of all memory, given our programs don't take
this much we should instead use more /tmp space in case we have to store
more images.

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed Apr 30, 2024
1 parent 59a0bd5 commit d885cd6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cache_images/fedora_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ fi
# shellcheck source=./lib.sh
source "$REPO_DIRPATH/lib.sh"

# Make /tmp tmpfs bigger, by default we only get 50%. Bump it to 75% so the tests have more storage.
# Do not use 100% so we do not run out of memory for the process itself if tests start leaking big
# files on /tmp.
$SUDO mkdir /etc/systemd/system/tmp.mount.d
$SUDO sh -c 'echo -e "[Mount]\nOptions=size=75%%,mode=1777\n" > /etc/systemd/system/tmp.mount.d/override.conf'

# packer and/or a --build-arg define this envar value uniformly
# for both VM and container image build workflows.
req_env_vars PACKER_BUILD_NAME
Expand Down

0 comments on commit d885cd6

Please sign in to comment.