Skip to content

Commit f582f93

Browse files
committed
#63 feat: add cleanup script for staged RPMs to optimize build process
1 parent 50079d2 commit f582f93

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
# Tell build process to exit if there are any errors.
4+
set -euo pipefail
5+
set -x
6+
7+
#
8+
# Clean up staged RPM cache (prevents ~1.2GB of stale data from invalidating container layers on every build)
9+
#
10+
rm -rf /run/rpm-ostree/staged-rpms/*

recipes/recipe-dx-hwe-nvidia.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ modules:
9393
- type: script
9494
scripts:
9595
- install_pwsh_wsman.sh
96+
- cleanup_staged_rpms.sh
9697

97-
9898
- type: default-flatpaks
9999
configurations:
100100
- notify: true

recipes/recipe-dx-hwe.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ modules:
8080
- type: script
8181
scripts:
8282
- install_pwsh_wsman.sh
83+
- cleanup_staged_rpms.sh
8384

8485
- type: default-flatpaks
8586
configurations:

recipes/recipe-dx-surface.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ modules:
8686
- type: script
8787
scripts:
8888
- install_pwsh_wsman.sh
89+
- cleanup_staged_rpms.sh
8990

9091
- type: default-flatpaks
9192
configurations:

0 commit comments

Comments
 (0)