Commit Graph

13 Commits

Author SHA1 Message Date
Boian Bonev
02a2afffc1
Improve wording
Generate udevadm.8 from udevadm.xml
2023-09-30 22:35:38 +00:00
Boian Bonev
060dc0ffaf
Merge branch 'master' into master 2023-10-01 00:26:08 +03:00
Vivien Kraus
65e17b2f2f Dynamically get the udevadm hwdb files with a path variable
Introduce UDEV_HWDB_PATH, containing a colon-separated path with hwdb
files in it. The whole path is searched, in addition to the system
locations, when searching for hwdb files.

Due to how conf_files_list_strv is implemented, as a thin wrapper
around the internal function, it is easy to also implement a variant
accepting a search path in the same way. Since the internal function
expects an allocated array of allocated strings, the path scanning is
done in 2 steps, to first get the array length, and then duplicate the
items. It is not possible to use strtok(_r) here because it would work
for only 1 pass.

* src/shared/conf-files.c (conf_files_list_follow_path): New function.
(conf_files_list_strv_path): Use it here.
* src/shared/conf-files.h: Export the signature for the _path variant.
* src/udev/udevadm-hwdb.c (list_conf_file_path): New function
replacing conf_file_dirs.
(help): Document the search path for hwdb files.
(adm_hwdb): Use list_conf_file_path and conf_files_list_strv_path.
* man/udevadm.xml: Mention UDEV_HWDB_PATH.
* man/udev.xml: Same.
* man/udevadm.8: Regenerate.
* man/udev.7: Same.
2023-09-30 19:40:17 +02:00
Vivien Kraus
1eca0ef6c4 Add a generic --output argument to udevadm hwdb
Instead of always writing /etc/udev/hwdb.bin or UDEV_LIBEXEC_DIR
/hwdb.bin, let the user specify a full file name.

* src/udev/udevadm-hwdb.c (adm_hwdb): New option "output". Construct
hwdb_bin when processing options, and prepend root after processing
options.
* man/udev.xml: Mention --output.
* man/udevadm.xml: Document --output.
* man/udev.7: Regenerate.
* man/udevadm.8: Same.
2023-09-30 19:38:30 +02:00
Boian Bonev
f566c4ae32
Merge the generated man page 2022-06-06 16:30:50 +03:00
Boian Bonev
95ab90723d
Keep the reproducible generated man pages in git 2022-05-26 19:16:16 +03:00
Anthony G. Basile
823db6f44c configure.ac bump 3.2.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-12-11 11:50:20 -05:00
Anthony G. Basile
71640ee498 man: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-05-30 07:09:14 -04:00
Anthony G. Basile
903c8a36e1 man/udev.conf.xml: fix s/commandline/command line/g and rebuild man pages
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-11-07 08:33:37 -05:00
Zbigniew Jędrzejewski-Szmek
c45f1f9002 man: describe all log levels in udevadm(8)
https://bugs.freedesktop.org/show_bug.cgi?id=85657

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-11-02 14:44:51 -05:00
Anthony G. Basile
0ba3128e90 man: update man pages
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-11-02 14:36:05 -05:00
Anthony G. Basile
2886f6c9e5 man: change systemd-udev to udev everywhere
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-10-31 21:25:43 -04:00
Anthony G. Basile
96fe7e83d4 man: ship pre-build man pages
This addresses https://github.com/gentoo/eudev/issues/98

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-10-31 20:12:39 -04:00