mirror of
https://github.com/femtofox/femtofox.git
synced 2026-10-26 19:02:00 -04:00
improve apt performance
This disables unnecessary apt repositories and tunes down starting apt cache size to reduce memory consumption and avoid swapping.
This commit is contained in:
parent
ccdb98a113
commit
fc1c6cc2a1
1 changed files with 6 additions and 0 deletions
|
|
@ -1,6 +1,12 @@
|
|||
echo "Inside chroot environment..."
|
||||
echo "tmpfs /run tmpfs rw,nodev,nosuid,size=32M 0 0" | tee -a /etc/fstab
|
||||
|
||||
echo "Tuning apt for low memory usage..."
|
||||
# disable unused repositories to allow apt operations to fit in available RAM
|
||||
sed 's/^[^#]*\(universe\|multiverse\|backports\)/# &/' -i /etc/apt/sources.list
|
||||
# tune starting cache memory allocation down from 20M to 5M
|
||||
echo 'APT::Cache-Start "5242880";' > /etc/apt/apt.conf.d/00-cache
|
||||
|
||||
# Temporarily removed for SEGFAULT fix done after upgrade below.
|
||||
#echo "Installing Meshtastic..."
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue