mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 09:46:25 +00:00
Allow overriding lock directory with an environment variable
This commit is contained in:
parent
450d8a02d4
commit
ff8b3d26a4
@ -91,6 +91,7 @@ for details.
|
||||
* `FWUPD_SYSFSFWDIR`
|
||||
* `FWUPD_SYSFSSECURITYDIR`
|
||||
* `FWUPD_SYSFSTPMDIR`
|
||||
* `FWUPD_LOCKDIR`
|
||||
* `FWUPD_UEFI_ESP_PATH`
|
||||
* `HOME`
|
||||
* `RUNTIME_DIRECTORY`
|
||||
|
@ -418,6 +418,9 @@ fu_path_from_kind(FuPathKind path_kind)
|
||||
return g_build_filename(basedir, "etc", PACKAGE_NAME, NULL);
|
||||
/* /run/lock */
|
||||
case FU_PATH_KIND_LOCKDIR:
|
||||
tmp = g_getenv("FWUPD_LOCKDIR");
|
||||
if (tmp != NULL)
|
||||
return g_strdup(tmp);
|
||||
return g_strdup("/run/lock");
|
||||
/* /sys/class/firmware-attributes */
|
||||
case FU_PATH_KIND_SYSFSDIR_FW_ATTRIB:
|
||||
|
Loading…
Reference in New Issue
Block a user