Tim Lee
aeb40f1166
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>
2023-04-06 19:10:05 -04:00
..
2023-03-29 11:58:26 -04:00
2023-04-03 16:45:41 -04:00
2023-04-04 14:50:47 -04:00
2023-03-08 11:40:49 -08:00
2023-04-06 19:10:05 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-04-26 14:23:39 -06:00
2023-02-04 18:19:00 +01:00
2018-05-07 09:34:12 -04:00
2023-03-08 13:15:14 -08:00
2023-03-08 11:40:49 -08:00
2023-03-14 16:08:52 -06:00
2020-04-24 10:10:00 -04:00
2018-05-07 09:34:12 -04:00
2021-09-30 08:08:56 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-07-29 00:20:31 +02:00
2023-02-06 17:10:14 -05:00
2022-02-28 10:33:11 -05:00
2018-05-07 09:34:12 -04:00
2022-10-31 14:47:33 -04:00
2021-01-13 02:38:00 +01:00
2020-06-29 22:36:35 +02:00
2022-12-22 10:31:47 -05:00
2023-03-14 16:08:52 -06:00
2022-01-26 08:50:43 -07:00
2022-12-08 09:29:02 -05:00
2018-11-26 22:52:12 -05:00
2022-01-26 08:50:42 -07:00
2022-01-26 08:50:44 -07:00
2022-01-26 08:50:44 -07:00
2023-01-27 12:51:27 -05:00
2019-05-18 12:32:02 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2022-01-19 18:11:34 +01:00
2018-05-07 09:34:12 -04:00
2023-01-27 12:51:26 -05:00
2023-01-18 11:49:13 -07:00
2022-01-28 17:58:41 -05:00
2023-02-06 14:35:14 -05:00
2023-01-27 12:51:27 -05:00
2017-06-16 10:11:38 -04:00
2023-03-22 15:22:48 -04:00
2021-10-21 13:59:26 +02:00
2023-01-30 23:23:01 +01:00
2019-01-01 14:12:18 +01:00
2023-01-30 23:23:01 +01:00
2023-03-29 11:58:26 -04:00
2021-09-10 20:10:20 -04:00
2022-10-12 08:56:24 -04:00
2022-07-25 15:35:34 +02:00
2023-03-29 11:58:26 -04:00
2023-03-24 13:13:14 +01:00
2022-02-17 14:17:07 +01:00
2023-03-24 13:13:57 +01:00
2018-05-07 09:34:12 -04:00
2023-03-14 16:08:52 -06:00
2019-11-04 18:15:32 -07:00
2022-06-23 12:58:18 -04:00
2022-10-31 14:47:33 -04:00
2022-11-23 13:06:12 -05:00
2018-05-07 09:34:12 -04:00
2023-03-01 06:39:17 +01:00
2022-07-01 16:01:25 -04:00
2021-10-25 14:49:58 +01:00
2023-02-07 14:33:47 -05:00
2022-09-29 16:07:57 -04:00
2022-09-23 15:09:16 -04:00
2022-09-23 15:09:16 -04:00
2022-09-23 15:09:16 -04:00
2018-05-07 09:34:12 -04:00
2023-02-07 14:33:48 -05:00
2018-05-07 09:34:12 -04:00
2021-12-02 08:34:01 +02:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-04-24 10:51:56 -04:00
2020-04-24 10:51:56 -04:00
2019-12-02 18:23:08 -05:00
2018-05-07 09:34:12 -04:00
2022-02-28 12:01:02 +05:30
2022-02-28 12:01:02 +05:30
2019-08-15 13:42:28 +08:00
2019-09-03 09:30:32 +08:00
2022-12-08 09:29:02 -05:00
2023-03-22 15:22:48 -04:00
2023-03-13 11:46:17 +01:00
2023-02-28 18:07:27 +08:00
2022-01-19 18:11:34 +01:00
2019-12-27 15:17:07 +08:00
2019-11-04 18:15:32 -07:00
2019-12-27 15:17:07 +08:00
2019-12-27 15:17:07 +08:00
2023-03-08 11:40:49 -08:00
2021-01-15 17:48:39 +08:00
2019-10-08 16:36:37 +02:00
2020-02-13 17:32:09 +01:00
2022-04-04 23:24:17 +01:00
2022-08-31 12:21:47 -04:00
2017-05-05 16:45:57 -04:00
2022-09-13 06:38:08 +02:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-11-30 18:32:09 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2022-02-15 12:41:00 +01:00
2022-06-24 14:37:27 +02:00
2019-10-28 13:32:51 -04:00
2018-05-11 09:23:44 +02:00
2018-05-11 14:54:57 -04:00