summaryrefslogtreecommitdiffstats
path: root/man/udev.xml (follow)
Commit message (Collapse)AuthorAgeFilesLines
* udev-rules: support case insensitive matchYu Watanabe2024-09-151-0/+6
| | | | | | | | | This introduces 'i' prefix for match string. When specified, string or pattern will match case-insensitively. Closes #34359. Co-authored-by: Ryan Wilson <ryantimwilson@meta.com>
* udev: String substitutions can be done in ENV, tooruniq2024-02-201-7/+8
| | | | | | | | Precedence for example in https://github.com/systemd/systemd/blob/ac63c8df309e37960618610d8b57ac19ac657254/rules.d/99-systemd.rules.in#L75. Add ENV to the list of keys where string substitutions can be used. While I'm at it, also sort the list in that paragraph alphabetically.
* man: use same version in public and system ident.David Tardon2023-12-251-1/+1
|
* man: use <simplelist> for 'See also' sectionsDavid Tardon2023-12-231-8/+8
| | | | | This is just a slight markup improvement; there should be no difference in rendering.
* man: use meaningful titles for <ulink>sZbigniew Jędrzejewski-Szmek2023-11-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | As pointed out in https://github.com/systemd/systemd/issues/29814, we need to use phrases are are meaningful on their own, because the man page formatter creates a list at the bottom. With <ulink>see docs</ulink>, we end up with: NOTES: 1. see docs https://some.url/page 2. see docs https://some.url/page2 which is not very useful :( Also, the text inside the tag should not include punctuation. Python helper: from xml_helper import xml_parse for p in glob.glob('../man/*.xml'): t = xml_parse(p) ulinks = t.iterfind('.//ulink') for ulink in ulinks: if ulink.text is None: continue text = ' '.join(ulink.text.split()) print(f'{p}: {text}')
* man: update version informationAbderrahim Kitouni2023-09-191-0/+24
| | | | | | | | As I noticed a lot of missing information when trying to implement checking for missing info. I reimplemented the version information script to be more robust, and here is the result. Follow up to ec07c3c80b2b1bfa6788500202006ff85f5ae4f4
* man: add version infoAbderrahim Kitouni2023-08-291-0/+6
| | | | | | | | This tries to add information about when each option was added. It goes back to version 183. The version info is included from a separate file to allow generating it, which would allow more control on the formatting of the final output.
* man: Add xinclude namespaceAbderrahim Kitouni2023-08-281-1/+1
| | | | | This will be used by the next commit to add version information to the nodes.
* udev: add 'conf-virt' constant for confidential virtualization techDaniel P. Berrangé2023-07-061-0/+8
| | | | | Related: https://github.com/systemd/systemd/issues/27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* udev-rules: fix negative match rule for SYMLINK and TAGYu Watanabe2023-04-261-6/+9
| | | | Fixes #27396.
* tree-wide: use the term "initrd" at most places we so far used "initramfs"Lennart Poettering2022-09-231-7/+5
| | | | | | | | | | | | In most cases we refernced the concept as "initrd". Let's convert most remaining uses of "initramfs" to "initrd" too, to stay internally consistent. This leaves "initramfs" only where it's relevant to explain historical concepts or where "initramfs" is part of the API (i.e. in /run/initramfs). Follow-up for: b66a6e1a5838b874b789820c090dd6850cf10513
* man: replace full stop with colonYu Watanabe2022-03-131-1/+1
| | | | Fixes #22724.
* man: update description of "string_escape=" udev optionYu Watanabe2021-06-231-4/+7
|
* man: mention that != matches nonexistent keys tooZbigniew Jędrzejewski-Szmek2021-03-011-2/+4
| | | | Fixes #15984.
* man: reorder match types in udev rulesZbigniew Jędrzejewski-Szmek2021-03-011-31/+35
| | | | | The plural version should always be adjacent to the singular one. And the plural should not be explained before the singular one…
* man: fix two issues in udev(7)Zbigniew Jędrzejewski-Szmek2021-02-251-2/+2
| | | | Fixed #18050.
* man: mention new OPTIONS=log_level= udev ruleYu Watanabe2020-12-101-0/+18
|
* man: fix typoYu Watanabe2020-11-131-1/+1
|
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* document udev escaped string in udev(7)Yu, Li-Yu2020-10-291-722/+746
|
* man: use trailing slash on directories in more placesZbigniew Jędrzejewski-Szmek2020-10-051-6/+6
|
* man: add more details for IMPORT, PROGRAM and RUN keysZbigniew Jędrzejewski-Szmek2020-07-161-32/+47
| | | | | | | | 967de8faceaa83c11a1215515cb135d7a8c0c32c added a note that I found very hard to understand. Reword it, and also describe how IMPORT and PROGRAM are different from RUN. Minor markup adjustements too.
* man: suggest SYSTEMD_WANTS usage instead of RUN for long running processesLennart Poettering2020-01-171-0/+4
| | | | Fixes: #14259
* udev: introduce CONST key nameJan Synacek2019-10-141-0/+26
| | | | | | | | | | | | Currently, there is no way to match against system-wide constants, such as architecture or virtualization type, without forking helper binaries. That potentially results in a huge number of spawned processes which output always the same answer. This patch introduces a special CONST keyword which takes a hard-coded string as its key and returns a value assigned to that key. Currently implemented are CONST{arch} and CONST{virt}, which can be used to match against the system's architecture and virtualization type.
* Document (final) assignment on the RUN (#12310)Florian Dollinger2019-04-141-0/+2
| | | As described in #12291, final assignments and assignments are clearing both command types.
* man: use same header for all filesZbigniew Jędrzejewski-Szmek2019-03-141-1/+1
| | | | | | | The "include" files had type "book" for some raeason. I don't think this is meaningful. Let's just use the same everywhere. $ perl -i -0pe 's^..DOCTYPE (book|refentry) PUBLIC "-//OASIS//DTD DocBook XML V4.[25]//EN"\s+"http^<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"\n "http^gms' man/*.xml
* udev: use the usual set of load paths for udev rulesZbigniew Jędrzejewski-Szmek2019-02-181-14/+12
| | | | | | | | | | | | | | This adds /usr/local/lib/udev/rules.d to the search path on non-split-usr systems. On split-usr systems, the paths with /usr/-prefixes are added too. In the past, on split-usr systems, it made sense to only load rules from /lib/udev/rules.d, because /usr could be mounted late. But we don't support running without /usr since 80758717a63, so in practice it doesn't matter whether the rules files are in /lib/udev/rules.d or /usr/lib/udev/rules.d. Distributions that maintain the illusion of functional split-usr are welcome to simply not put any files in /usr/lib/udev/rules.d/. In practice this doesn't change much, but it makes udev more consistent with the rest of the systemd suite.
* man: document db_persist udev rules OPTIONMichal Sekletar2019-01-221-0/+12
| | | | Fixes #1551
* doc: fix udev(7) documentation about ATTR{} and SYSCTL{}Daniel Kahn Gillmor2018-08-231-0/+2
| | | | | | | | | | | | | | | | | Without this fix, udev(7) munges the two items together, like so: ATTR{filename}, SYSCTL{kernel parameter} Match sysfs attribute values of the event device. Trailing whitespace in the attribute values is ignored unless the specified match value itself contains trailing whitespace. Match a kernel parameter value. You're not allowed to have a <term> element after a <listitem> element within a <varlistentry>. xmllint complains: udev.xml:192: element varlistentry: validity error : Element varlistentry content does not follow the DTD, expecting (term+ , listitem), got (term listitem term listitem )
* man: drop mode line in file headersZbigniew Jędrzejewski-Szmek2018-07-031-1/+1
| | | | | This is already included in .dir-locals, so we don't need it in the files themselves.
* tree-wide: drop copyright headers from frequent contributorsZbigniew Jędrzejewski-Szmek2018-06-201-2/+0
| | | | | | | | Fixes #9320. for p in Shapovalov Chevalier Rozhkov Sievers Mack Herrmann Schmidt Rudenberg Sahani Landden Andersen Watanabe; do git grep -e 'Copyright.*'$p -l|xargs perl -i -0pe 's|/([*][*])?[*]\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\s*[*]([*][*])?/\n*|\n|gms; s|\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\n*|\n|gms' done
* man: drop unused <authorgroup> tags from man sourcesZbigniew Jędrzejewski-Szmek2018-06-141-14/+0
| | | | | | | | | | | | Docbook styles required those to be present, even though the templates that we use did not show those names anywhere. But something changed semi-recently (I would suspect docbook templates, but there was only a minor version bump in recent years, and the changelog does not suggest anything related), and builds now work without those entries. Let's drop this dead weight. Tested with F26-F29, debian unstable. $ perl -i -0pe 's/\s*<authorgroup>.*<.authorgroup>//gms' man/*xml
* tree-wide: beautify remaining copyright statementsLennart Poettering2018-06-141-2/+2
| | | | | | Let's unify an beautify our remaining copyright statements, with a unicode ©. This means our copyright statements are now always formatted the same way. Yay.
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-141-2/+0
| | | | | | | | | | | | | | | | This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-061-13/+0
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* man: make clear that accessing network and mounting filesystems is not ↵Michal Sekletar2018-01-201-0/+3
| | | | | | | | | supported in udev rules (#7916) These restrictions are implied by systemd options used for systemd-udevd.service, i.e. MountFlags=slave and IPAddressDeny=any. However, there are users out there getting tripped by this, so let's make things clear in the man page so the actual restrictions we implement by default have better visibility.
* Add missing headers and SPDX identifiers to man pagesZbigniew Jędrzejewski-Szmek2017-11-191-0/+22
|
* udev: allow substitutions for SECLABEL key (#4505)Michal Sekletar2016-10-281-2/+2
|
* doc: correct punctuation and improve typography in documentationJan Engelhardt2015-11-061-2/+2
|
* udev: remove WAIT_FOR keyKay Sievers2015-06-301-9/+0
| | | | | | This facility was never a proper solution, but only papered over real bugs in the kernel. There are no known sysfs "timing bugs" since a long time.
* man: revert dynamic paths for split-usr setupsTom Gundersen2015-06-181-8/+5
| | | | | | | | | | | | | | | | | | | | | | | This did not really work out as we had hoped. Trying to do this upstream introduced several problems that probably makes it better suited as a downstream patch after all. At any rate, it is not releaseable in the current state, so we at least need to revert this before the release. * by adjusting the path to binaries, but not do the same thing to the search path we end up with inconsistent man-pages. Adjusting the search path too would be quite messy, and it is not at all obvious that this is worth the effort, but at any rate it would have to be done before we could ship this. * this means that distributed man-pages does not make sense as they depend on config options, and for better or worse we are still distributing man pages, so that is something that definitely needs sorting out before we could ship with this patch. * we have long held that split-usr is only minimally supported in order to boot, and something we hope will eventually go away. So before we start adding even more magic/effort in order to make this work nicely, we should probably question if it makes sense at all.
* man: clarify that IMPORT{program} is done only for zero exit codeAndrei Borzenkov2015-06-101-1/+2
|
* man: replace hard-coded /usr/libDaniel Mack2015-06-021-2/+2
| | | | Replace some /usr/lib occurences in man/ with &rootprefix;/lib.
* man: generate configured paths in manpagesFilipe Brandenburger2015-05-281-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular, use /lib/systemd instead of /usr/lib/systemd in distributions like Debian which still have not adopted a /usr merge setup. Use XML entities from man/custom-entities.ent to replace configured paths while doing XSLT processing of the original XML files. There was precedent of some files (such as systemd.generator.xml) which were already using this approach. This addresses most of the (manual) fixes from this patch: http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/tree/debian/patches/Fix-paths-in-man-pages.patch?h=experimental-220 The idea of using generic XML entities was presented here: http://lists.freedesktop.org/archives/systemd-devel/2015-May/032240.html This patch solves almost all the issues, with the exception of: - Path to /bin/mount and /bin/umount. - Generic statements about preference of /lib over /etc. These will be handled separately by follow up patches. Tested: - With default configure settings, ran "make install" to two separate directories and compared the output to confirm they matched exactly. - Used a set of configure flags including $CONFFLAGS from Debian: http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/tree/debian/rules Installed the tree and confirmed the paths use /lib/systemd instead of /usr/lib/systemd and that no other unexpected differences exist. - Confirmed that `make distcheck` still passes.
* udev: add SYSCTL{} supportKay Sievers2015-03-111-0/+12
|
* man: boilerplate unificationZbigniew Jędrzejewski-Szmek2015-02-111-1/+0
|
* tree-wide: spelling fixesVeres Lajos2014-12-311-1/+1
| | | | | | | https://github.com/vlajos/misspell_fixer https://github.com/torstehu/systemd/commit/b6fdeb618cf2f3ce1645b3315f15f482710c7ffa Thanks to Torstein Husebo <torstein@huseboe.net>.
* systemd-hwdb: introduce new toolTom Gundersen2014-12-181-37/+0
| | | | | | | | 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: add emacs header to get correct indention in nxml-mode for the manpage ↵Lennart Poettering2014-11-211-1/+1
| | | | | | | | XML files that use 2ch indenting In the long run we really should figure out if we want to stick with 8ch or 2ch indenting, and not continue with half-and-half. For now, just make emacs aware of the files that use 2ch indenting.
* udev hwdb: Support shipping pre-compiled database in system imagesMartin Pitt2014-10-281-1/+3
| | | | | | | | | | | | | | | | In some cases it is preferable to ship system images with a pre-generated binary hwdb database, to avoid having to build it at runtime, avoid shipping the source hwdb files, or avoid storing large binary files in /etc. So if hwdb.bin does not exist in /etc/udev/, fall back to looking for it in UDEVLIBEXECDIR. This keeps the possibility to add files to /etc/udev/hwdb.d/ and re-generating the database which trumps the one in /usr/lib. Add a new --usr flag to "udevadm hwdb --update" which puts the database into UDEVLIBEXECDIR. Adjust systemd-udev-hwdb-update.service to not generate the file in /etc if we already have it in /usr.