ENOMEM when importing tor browser with git-annex
It would be nice to improve commands from https://tails.boum.org/contribute/release_process/tor-browser/
Move the tarballs into your local Git annex: cd "$TBB_ARCHIVE" && \ mkdir "$TBB_VERSION" && cd "$TBB_VERSION" && \ git annex import --duplicate "$DL_DIR/"* "$TAILS_GIT_REPO/"sha256sums-*
I couldn't get it to finish with my 16GB system, which starts swapping until swap space runs out and git-annex gets killed by the OOMK. That happened reproducibly.
Turns out some variables were unset, which I cannot explain since memory pressure seems to have triggered graphic corruption that makes it impossible to double check earlier output in that particular terminal.
Whatever the reasons, it would be nice to have the usual
?: syntax to make sure not to run any commands that would work on the entire root filesystem…