From 65eb4378c3e1de25383d8cd606909e64c71edc80 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 16 Dec 2014 00:48:24 +0100 Subject: systemd-hwdb: introduce new tool This pulls out the hwdb managment from udevadm into an independent tool. The old code is left in place for backwards compatibility, and easy of testing, but all documentation is dropped to encourage use of the new tool instead. --- man/hwdb.xml | 87 ++++++++++++++++++++++++++++++++++++++++++++++++ man/systemd-hwdb.xml | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++ man/udev.xml | 37 --------------------- man/udevadm.xml | 53 ----------------------------- 4 files changed, 181 insertions(+), 90 deletions(-) create mode 100644 man/hwdb.xml create mode 100644 man/systemd-hwdb.xml (limited to 'man') diff --git a/man/hwdb.xml b/man/hwdb.xml new file mode 100644 index 0000000000..9f2aff3261 --- /dev/null +++ b/man/hwdb.xml @@ -0,0 +1,87 @@ + + + + + + + hwdb + systemd + + + Developer + Kay + Sievers + kay@vrfy.org + + + Developer + Tom + Gundersen + teg@jklm.no + + + + + + hwdb + 7 + + + + hwdb + Hardware Database + + + Description + The hardware database is a key-value store for associating modalias-like keys to + udev-properties-like values. It is used primarily by udev to add the relevant properties + to matching devices, but it can also be queried directly. + + + Hardware Database Files + The hwdb files are read from the files located in the + system hwdb directory /usr/lib/udev/hwdb.d, + the volatile runtime directory /run/udev/hwdb.d + and the local administration directory /etc/udev/hwdb.d. + All hwdb files are collectively sorted and processed in lexical order, + regardless of the directories in which they live. However, files with + identical filenames replace each other. Files in /etc + have the highest priority, files in /run take precedence + over files with the same name in /usr/lib. This can be + used to override a system-supplied hwdb file with a local file if needed; + a symlink in /etc with the same name as a hwdb file in + /usr/lib, pointing to /dev/null, + disables the hwdb file entirely. hwdb files must have the extension + .hwdb; other extensions are ignored. + + The hwdb file contains data records consisting of matches and + associated key-value pairs. Every record in the hwdb starts with one or + more match string, specifying a shell glob to compare the database + lookup string against. Multiple match lines are specified in additional + consecutive lines. Every match line is compared indivdually, they are + combined by OR. Every match line must start at the first character of + the line. + + The match lines are followed by one or more key-value pair lines, which + are recognized by a leading space character. The key name and value are separated + by =. An empty line signifies the end + of a record. Lines beginning with # are ignored. + + The content of all hwdb files is read by + systemd-hwdb8 + and compiled to a binary database located at /etc/udev/hwdb.bin, + or alternatively /usr/lib/udev/hwdb.bin if you want ship the compiled + database in an immutable image. + During runtime only the binary database is used. + + + + See Also + + + systemd-hwdb8 + + + + diff --git a/man/systemd-hwdb.xml b/man/systemd-hwdb.xml new file mode 100644 index 0000000000..09f4d551a9 --- /dev/null +++ b/man/systemd-hwdb.xml @@ -0,0 +1,94 @@ + + + + + + + systemd-hwdb + systemd + + + Developer + Kay + Sievers + kay@vrfy.org + + + Developer + Tom + Gundersen + teg@jklm.no + + + + + + systemd-hwdb + 8 + + + + systemd-hwdbhardware database management tool + + + + + systemd-hwdb options update + + + systemd-hwdb options query modalias + + + + Description + systemd-hwdb expects a command and command + specific arguments. It manages the binary hardware database. + + + Options + + + + + + Print help text. + + + + + + Generate in /usr/lib/udev instead of /etc/udev. + + + + + + + Alternative root path in the filesystem. + + + + + systemd-hwdb + <arg choice="opt"><replaceable>options</replaceable></arg> + update + Update the binary database. + + + systemd-hwdb + <arg choice="opt"><replaceable>options</replaceable></arg> + query + <arg><replaceable>MODALIAS</replaceable></arg> + + Query database and print result. + + + + + See Also + + hwdb7 + + + diff --git a/man/udev.xml b/man/udev.xml index 1113a66a2a..34b2e12f78 100644 --- a/man/udev.xml +++ b/man/udev.xml @@ -735,43 +735,6 @@ - Hardware Database Files - The hwdb files are read from the files located in the - system hwdb directory /usr/lib/udev/hwdb.d, - the volatile runtime directory /run/udev/hwdb.d - and the local administration directory /etc/udev/hwdb.d. - All hwdb files are collectively sorted and processed in lexical order, - regardless of the directories in which they live. However, files with - identical filenames replace each other. Files in /etc - have the highest priority, files in /run take precedence - over files with the same name in /usr/lib. This can be - used to override a system-supplied hwdb file with a local file if needed; - a symlink in /etc with the same name as a hwdb file in - /usr/lib, pointing to /dev/null, - disables the hwdb file entirely. hwdb files must have the extension - .hwdb; other extensions are ignored. - - The hwdb file contains data records consisting of matches and - associated key-value pairs. Every record in the hwdb starts with one or - more match string, specifying a shell glob to compare the database - lookup string against. Multiple match lines are specified in additional - consecutive lines. Every match line is compared indivdually, they are - combined by OR. Every match line must start at the first character of - the line. - - The match lines are followed by one or more key-value pair lines, which - are recognized by a leading space character. The key name and value are separated - by =. An empty line signifies the end - of a record. Lines beginning with # are ignored. - - The content of all hwdb files is read by - udevadm8 - and compiled to a binary database located at /etc/udev/hwdb.bin, - or alternatively /usr/lib/udev/hwdb.bin if you want ship the compiled - database in an immutable image. - During runtime only the binary database is used. - - See Also diff --git a/man/udevadm.xml b/man/udevadm.xml index 38c1935fa8..4aa89646db 100644 --- a/man/udevadm.xml +++ b/man/udevadm.xml @@ -48,9 +48,6 @@ udevadm monitor options - - udevadm hwdb options - udevadm test options devpath @@ -512,56 +509,6 @@ - udevadm hwdb - <arg choice="opt"><replaceable>options</replaceable></arg> - - Maintain the hardware database index in /etc/udev/hwdb.bin. - - - - - - Compile the hardware database information located in /usr/lib/udev/hwdb.d/, - /etc/udev/hwdb.d/ and store it in /etc/udev/hwdb.bin. This should be done after - any update to the source files; it will not be called automatically. The running - udev daemon will detect a new database on its own and does not need to be - notified about it. - - - - - - Put the compiled database into /usr/lib/udev/hwdb.bin instead. - Use this if you want to ship a pre-compiled database in immutable system images, or - don't use /etc/udev/hwdb.d and want to avoid large binary files in - /etc. - - - - - - - Query the database with a modalias string, and print the - retrieved properties. - - - - - - - Alternative root path in the file system for reading and writing files. - - - - - - - Print help text. - - - - - udevadm test <arg choice="opt"><replaceable>options</replaceable></arg> <arg><replaceable>devpath</replaceable></arg> -- cgit v1.2.3