Skip to content

Commit

Permalink
Merge pull request #5768 from Lifto/no-tmpfs-if-small-ram
Browse files Browse the repository at this point in the history
Don't use tmpfs in build if not enough RAM
  • Loading branch information
jkonecny12 committed Jul 22, 2024
2 parents 6c1626d + 632c064 commit 3847f16
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ container-iso-build:
sudo $(CONTAINER_ENGINE) run \
--rm \
--privileged \
--tmpfs /var/tmp:rw,mode=1777 \
$(shell test $(shell grep MemTotal /proc/meminfo | awk '{print $$2}') -gt 11000000 && \
echo --tmpfs /var/tmp:rw,mode=1777) \
-v $(srcdir)/result/build/01-rpm-build:/anaconda-rpms:ro \
-v $(srcdir)/result/iso:/images:z \
$(CONTAINER_ADD_ARGS) \
Expand Down Expand Up @@ -397,7 +398,8 @@ container-live-iso-build:
--rm \
--tty \
--privileged \
--tmpfs /var/tmp:rw,mode=1777 \
$(shell test $(shell grep MemTotal /proc/meminfo | awk '{print $$2}') -gt 15000000 && \
echo --tmpfs /var/tmp:rw,mode=1777) \
--device /dev/kvm \
-v $(srcdir)/result/build/01-rpm-build:/anaconda-rpms:ro \
-v $(srcdir)/result/iso:/images:z \
Expand Down

0 comments on commit 3847f16

Please sign in to comment.