Skip to content

Commit f220d9f

Browse files
Yury-MonZonalchark
authored andcommitted
Add actions to prune orphaned packages and clean apt cache
1 parent e70ca32 commit f220d9f

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

debian-rk3576-img.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ actions:
133133
chroot: true
134134
command: find /var/cache/linux-kernel -name linux-image-\*.deb -a ! -name \*-dbg_\* -print0 | xargs -0 apt install -y
135135

136+
- action: run
137+
description: Prune orphaned packages and apt cache
138+
chroot: true
139+
command: |
140+
set -eu
141+
apt-get autoremove --purge -y
142+
apt-get clean
143+
rm -rf /var/lib/apt/lists/*
144+
136145
# The kernel-install plugin only wrote @Minimal's entry (the build root). Fan the installed
137146
# kernel(s) out to every profile: one entry + a reflinked /boot/<token>/ per profile per version
138147
# (token = <NN>-flipperos-<subvol>, NN from the flipper-profiles order). The shared logic lives in
@@ -243,6 +252,14 @@ actions:
243252
- sddm
244253
- sddm-theme-breeze
245254
- systemsettings
255+
- action: run
256+
description: Prune orphaned packages and apt cache
257+
chroot: true
258+
command: |
259+
set -eu
260+
apt-get autoremove --purge -y
261+
apt-get clean
262+
rm -rf /var/lib/apt/lists/*
246263
- action: overlay
247264
description: KDE profile config (sddm autologin, plasma, wallpaper)
248265
source: overlays/profile-kde
@@ -285,6 +302,14 @@ actions:
285302
- cage
286303
- kodi
287304
- kodi-eventclients-kodi-send
305+
- action: run
306+
description: Prune orphaned packages and apt cache
307+
chroot: true
308+
command: |
309+
set -eu
310+
apt-get autoremove --purge -y
311+
apt-get clean
312+
rm -rf /var/lib/apt/lists/*
288313
- action: overlay
289314
description: TV media box profile config (kodi, enabled under multi-user)
290315
source: overlays/profile-tv-media-box

0 commit comments

Comments
 (0)