file_lock: Add fallback directory
This adds a fallback directory in case SYSTEM_LOCKFILE_DIR is
unavailable. Since this is a band-aid meant to help older systems
auto-update, the fallback path is hardcoded to "/tmp" as to avoid
polluting the overall lockfile API.
TEST=Tested on veyron_jaq by removing /run/lock and seeing
mosys, flashrom, and ectool run successfully with
firmware_utility_lock in /tmp.
Signed-off-by: David Hendricks <firstname.lastname@example.org>
Reviewed-by: Hung-Te Lin <email@example.com>
Reviewed-by: Duncan Laurie <firstname.lastname@example.org>
(cherry picked from commit 2c7fbec0d1319d9426fbdce88105c72b1234c49a)
1 file changed