From 507d6dfb6b55edf68b0932753ff325e2067e8c38 Mon Sep 17 00:00:00 2001 From: Robin Reckmann Date: Wed, 7 Aug 2024 18:26:58 +0900 Subject: [PATCH 1/4] Remove apt cache for each layer --- userspace/base_setup.sh | 7 +++---- userspace/compile-modemmanager.sh | 2 ++ userspace/install_extras.sh | 2 ++ userspace/openpilot_dependencies.sh | 2 ++ 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/userspace/base_setup.sh b/userspace/base_setup.sh index 2b909ea4..c22debcb 100755 --- a/userspace/base_setup.sh +++ b/userspace/base_setup.sh @@ -106,8 +106,6 @@ apt-fast install --no-install-recommends -yq \ wireless-tools \ zlib1g-dev -rm -rf /var/lib/apt/lists/* - # Allow chrony to make a big adjustment to system time on boot echo "makestep 0.1 3" >> /etc/chrony/chrony.conf @@ -128,7 +126,6 @@ echo "comma ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers ln -sf /bin/bash /bin/sh # Install necessary libs -apt-fast update -yq apt-fast install --no-install-recommends -yq \ libacl1:armhf \ libasan5-armhf-cross \ @@ -207,4 +204,6 @@ apt-fast install --no-install-recommends -yq \ wpasupplicant \ hostapd \ libgtk2.0-dev \ - libxml2:armhf \ + libxml2:armhf + +rm -rf /var/lib/apt/lists/* diff --git a/userspace/compile-modemmanager.sh b/userspace/compile-modemmanager.sh index 091cc89d..8b097298 100755 --- a/userspace/compile-modemmanager.sh +++ b/userspace/compile-modemmanager.sh @@ -61,3 +61,5 @@ mkdir -p /tmp/mm-plugins mv /usr/lib/aarch64-linux-gnu/ModemManager/libmm-*.so /tmp/mm-plugins cp /tmp/mm-plugins/*generic* /usr/lib/aarch64-linux-gnu/ModemManager/ cp /tmp/mm-plugins/*quectel* /usr/lib/aarch64-linux-gnu/ModemManager/ + +rm -rf /var/lib/apt/lists/* diff --git a/userspace/install_extras.sh b/userspace/install_extras.sh index 272af83b..f53aed19 100755 --- a/userspace/install_extras.sh +++ b/userspace/install_extras.sh @@ -9,3 +9,5 @@ apt-fast update && apt-fast install -y --no-install-recommends \ # color prompt sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/g' /home/comma/.bashrc + +rm -rf /var/lib/apt/lists/* diff --git a/userspace/openpilot_dependencies.sh b/userspace/openpilot_dependencies.sh index 1490936a..58922f4d 100755 --- a/userspace/openpilot_dependencies.sh +++ b/userspace/openpilot_dependencies.sh @@ -75,3 +75,5 @@ apt-fast install --no-install-recommends -yq \ qtpositioning5-dev \ qtwayland5 \ zstd + +rm -rf /var/lib/apt/lists/* From 0bf8974571b31fb929bf309ecfa9a380e8ca3433 Mon Sep 17 00:00:00 2001 From: Robin Reckmann Date: Wed, 7 Aug 2024 21:20:57 +0900 Subject: [PATCH 2/4] trigger From edc23a52c080d066514300ef570b80cd6958c933 Mon Sep 17 00:00:00 2001 From: Robin Reckmann Date: Wed, 7 Aug 2024 21:24:52 +0900 Subject: [PATCH 3/4] trigger From 089348d766aa99486b72bc44f942f0653520032b Mon Sep 17 00:00:00 2001 From: Robin Reckmann Date: Wed, 7 Aug 2024 21:28:41 +0900 Subject: [PATCH 4/4] trigger