Skip to content

Commit

Permalink
v6.34
Browse files Browse the repository at this point in the history
+ DietPi-Software | Bitwarden_RS: If APT cache and/or archives have been moved to RAM, build can still run into OOM due to the large amount of DEB packages installed as dependencies. Be failsafe and clean both. As the binary cache file is removed, this could slow down further APT installs within the same run, but much less compared to limiting the build to a single thread and Bitwarden_RS is one of the last installs performed due to its location near the end of the install function.
  • Loading branch information
MichaIng authored Nov 28, 2020
1 parent 2b04194 commit 39d11c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -5561,6 +5561,9 @@ Package: wireguard wireguard-dkms wireguard-tools\nPin: release n=bullseye\nPin-
# Temporarily assure 1.5 GiB /tmp size for temporary Rust install
(( $(findmnt -bno SIZE /tmp) < 1610612736 )) && G_EXEC mount -o remount,size=1610612736 /tmp

# Clean APT cache (which includes temporarily downloaded archives) when moved to RAM
[[ -d '/tmp/apt' ]] && G_EXEC apt-get clean

# Override $HOME to allow temporary Rust install to RAMdisk and DietPi-Software working directory, so all leftovers are automatically removed on script exit and/or reboot
export HOME="/tmp/$G_PROGRAM_NAME"

Expand Down

0 comments on commit 39d11c6

Please sign in to comment.