Skip to content

Commit

Permalink
v9.6
Browse files Browse the repository at this point in the history
- CI | DietPi-Build: Drop buffer/cache before starting container, as an attempt to solve "E: Could not read from *_InRelease - getline (12: Cannot allocate memory)"
  • Loading branch information
MichaIng committed Jun 29, 2024
1 parent 00c4099 commit 6265a32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .build/images/dietpi-build
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ then
abind=("--bind=$FP_LOOP" '--bind=/dev/disk')
for i in "${FP_LOOP}p"*; do abind+=("--bind=$i"); done
fi
# - Drop buffer/cache as an attempt to solve "E: Could not read from *_InRelease - getline (12: Cannot allocate memory)"
G_EXEC eval 'echo 3 > /proc/sys/vm/drop_caches'
systemd-nspawn -bD rootfs "${abind[@]}" || { G_DIETPI-NOTIFY 1 'systemd-nspawn failed, aborting ...'; journalctl -n 25; ss -tlpn; df -h; free -h; exit 1; }

[[ -f 'rootfs/success' ]] || { G_DIETPI-NOTIFY 1 'The container setup did not finish successfully, aborting ...'; journalctl -n 25; ss -tlpn; df -h; free -h; exit 1; }
Expand Down

0 comments on commit 6265a32

Please sign in to comment.