aboutsummaryrefslogtreecommitdiff
path: root/tools/fdt_add_pubkey.c
diff options
context:
space:
mode:
authorTim Lee <timlee660101@gmail.com>2023-02-10 17:05:39 +0800
committerTom Rini <trini@konsulko.com>2023-04-06 19:10:05 -0400
commitaeb40f1166e072856f865d26d42a4bea1ec3a514 (patch)
tree6115c834bdd57715945ad82ef956c0be5064d9af /tools/fdt_add_pubkey.c
parentc9eb37a1e764b43d2cd2a4a5e6f07d247c569ab7 (diff)
tools: env: use /run to store lockfile
According this issue https://github.com/ppp-project/ppp/issues/339. Eventually, the dt-utils changed lock directory to fix missing /var/lock directory error then make dt-utils can run normally. We also have a similar issue with these two utilities fw_printenv and fw_setenv will failed when the directory /var/lock is non-existent. We have a custom linux distribution built with yocto (OpenBMC) that use systemd and it deprecated the /var/lock directory. More discussion in systemd/systemd#15668. Thus, we sync with community's solution for uboot/tools/env utilities: The current location /var/lock is considered legacy (at least by systemd). Just use /run to store the lockfile and append the usual .lock suffix. Tested: Verified /run/lock is now present and fw_printenv can work in OpenBMC. Signed-off-by: Tim Lee <timlee660101@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/fdt_add_pubkey.c')
0 files changed, 0 insertions, 0 deletions