Skip to content

Commit 39d11c6

Browse files
authored
v6.34
+ 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.
1 parent 2b04194 commit 39d11c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dietpi/dietpi-software

+3
Original file line numberDiff line numberDiff line change
@@ -5561,6 +5561,9 @@ Package: wireguard wireguard-dkms wireguard-tools\nPin: release n=bullseye\nPin-
55615561
# Temporarily assure 1.5 GiB /tmp size for temporary Rust install
55625562
(( $(findmnt -bno SIZE /tmp) < 1610612736 )) && G_EXEC mount -o remount,size=1610612736 /tmp
55635563

5564+
# Clean APT cache (which includes temporarily downloaded archives) when moved to RAM
5565+
[[ -d '/tmp/apt' ]] && G_EXEC apt-get clean
5566+
55645567
# 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
55655568
export HOME="/tmp/$G_PROGRAM_NAME"
55665569

0 commit comments

Comments
 (0)