update/blobs/inject: use tmp/romdir, not TMPDIR
we are copying large numbers of ROM images, and the host system may have /tmp under a tmpfs; that same host system may or may not have a lot of memory. respect the user's machine. Signed-off-by: Leah Rowe <leah@libreboot.org>btrfsvols
parent
da991262a3
commit
8fc5f6ed53
|
@ -114,7 +114,9 @@ inject_blobs()
|
|||
|
||||
patch_release_roms()
|
||||
{
|
||||
_tmpdir=$(mktemp -d "/tmp/${board}_tmpXXXX")
|
||||
_tmpdir="tmp/romdir"
|
||||
rm -Rf "${_tmpdir}" || err "patch_release_roms 1: can't prepare tmpdir"
|
||||
mkdir -p "${_tmpdir}" || err "patch_release_roms: can't make tmpdir"
|
||||
tar -xf "${releasearchive}" -C "${_tmpdir}" || \
|
||||
err "patch_release_roms: could not extract release archive"
|
||||
|
||||
|
|
Loading…
Reference in New Issue