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 <email@example.com>
Reviewed-by: Hung-Te Lin <firstname.lastname@example.org>
Reviewed-by: Duncan Laurie <email@example.com>
1 file changed