Skip to content

Commit

Permalink
speed up apt-get operations by not rebuilding the man-db cache
Browse files Browse the repository at this point in the history
this apparently has little influence of man-page speed
the man-db cache is regenerated daily anyhow by a service / timer
  • Loading branch information
wiedehopf committed Nov 6, 2024
1 parent fa06132 commit 7599648
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/build_dist
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ if [[ "$VARIANT" == "dietpi"* ]] ; then
touch "$MNT_DIR"/opt/adsb/os.adsb.feeder.image
touch "$MNT_DIR"/opt/adsb/adsb.im.passwd.and.keys

# speed up apt-get operations by not rebuilding the man-db cache:
rm -f "$MNT_DIR"/var/lib/man-db/auto-update

# make systemd journal persistent for dietpi
sed -i -e 's/.*Storage=.*/Storage=persistent/' "$MNT_DIR/etc/systemd/journald.conf"
sed -i -e 's/.*RuntimeMaxUse=.*/RuntimeMaxUse=10M/' /etc/systemd/journald.conf
Expand Down
4 changes: 4 additions & 0 deletions src/modules/adsb-feeder/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ install_cleanup_trap

unpack /filesystem/root /

# speed up apt-get operations by not rebuilding the man-db cache:
debconf-set man-db/auto-update false || true
rm -f /var/lib/man-db/auto-update

# free up space
apt-get autoremove -y gcc-12 dpkg-dev gdb build-essential mkvtoolnix iso-codes shared-mime-info rpicam-apps-lite\* || true

Expand Down

0 comments on commit 7599648

Please sign in to comment.