Skip to content

Commit

Permalink
build: save diskspace by moving instead of copying
Browse files Browse the repository at this point in the history
Many buildbot workers are on ramdisks and don't have unlimited supply.
  • Loading branch information
pktpls committed Nov 7, 2024
1 parent 9df4c78 commit b3aae85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ EOF
|& tee "$destdir/build.log" >&2


find "$ibdir/bin/targets/$target" \( -name '*.bin' -or -name '*.img' -or -name '*.gz' -or -name 'profiles.json' -or -name 'faillogs' \) -exec cp -avx '{}' "$destdir/" \;
find "$ibdir/bin/targets/$target" \( -name '*.bin' -or -name '*.img' -or -name '*.gz' -or -name 'profiles.json' \) -exec mv -v '{}' "$destdir/" \;
mv "$ibdir/bin/targets/$target/faillogs" "$destdir/"

echo "Done."

0 comments on commit b3aae85

Please sign in to comment.