summaryrefslogtreecommitdiff
path: root/man/udev.xml
AgeCommit message (Collapse)AuthorFilesLines
2019-10-14udev: introduce CONST key nameJan Synacek1-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.
2019-04-14Document (final) assignment on the RUN (#12310)Florian Dollinger1-0/+2
As described in #12291, final assignments and assignments are clearing both command types.
2019-03-14man: use same header for all filesZbigniew Jędrzejewski-Szmek1-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
2019-02-18udev: use the usual set of load paths for udev rulesZbigniew Jędrzejewski-Szmek1-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.
2019-01-22man: document db_persist udev rules OPTIONMichal Sekletar1-0/+12
Fixes #1551
2018-08-23doc: fix udev(7) documentation about ATTR{} and SYSCTL{}Daniel Kahn Gillmor1-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 )
2018-07-03man: drop mode line in file headersZbigniew Jędrzejewski-Szmek1-1/+1
This is already included in .dir-locals, so we don't need it in the files themselves.
2018-06-20tree-wide: drop copyright headers from frequent contributorsZbigniew Jędrzejewski-Szmek1-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
2018-06-14man: drop unused <authorgroup> tags from man sourcesZbigniew Jędrzejewski-Szmek1-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
2018-06-14tree-wide: beautify remaining copyright statementsLennart Poettering1-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.
2018-06-14tree-wide: drop 'This file is part of systemd' blurbLennart Poettering1-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.
2018-04-06tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek1-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.
2018-01-20man: make clear that accessing network and mounting filesystems is not ↵Michal Sekletar1-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.
2017-11-19Add missing headers and SPDX identifiers to man pagesZbigniew Jędrzejewski-Szmek1-0/+22
2016-10-28udev: allow substitutions for SECLABEL key (#4505)Michal Sekletar1-2/+2
2015-11-06doc: correct punctuation and improve typography in documentationJan Engelhardt1-2/+2
2015-06-30udev: remove WAIT_FOR keyKay Sievers1-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.
2015-06-18man: revert dynamic paths for split-usr setupsTom Gundersen1-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.
2015-06-10man: clarify that IMPORT{program} is done only for zero exit codeAndrei Borzenkov1-1/+2
2015-06-02man: replace hard-coded /usr/libDaniel Mack1-2/+2
Replace some /usr/lib occurences in man/ with &rootprefix;/lib.
2015-05-28man: generate configured paths in manpagesFilipe Brandenburger1-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.
2015-03-11udev: add SYSCTL{} supportKay Sievers1-0/+12
2015-02-10man: boilerplate unificationZbigniew Jędrzejewski-Szmek1-1/+0
2014-12-30tree-wide: spelling fixesVeres Lajos1-1/+1
https://github.com/vlajos/misspell_fixer https://github.com/torstehu/systemd/commit/b6fdeb618cf2f3ce1645b3315f15f482710c7ffa Thanks to Torstein Husebo <torstein@huseboe.net>.
2014-12-18systemd-hwdb: introduce new toolTom Gundersen1-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.
2014-11-21man: add emacs header to get correct indention in nxml-mode for the manpage ↵Lennart Poettering1-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.
2014-10-28udev hwdb: Support shipping pre-compiled database in system imagesMartin Pitt1-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.
2014-09-11udev: allow removing tags via TAG-="foobar"David Herrmann1-0/+7
This extends the udev parser to support OP_REMOVE (-=) and adds support for TAG-= to remove previously set tags. We don't fail if the tag didn't exist. This is pretty handy if we ship default rules for seat-assignments and users want to exclude specific devices from that. They can easily add rules that drop any automatically added "seat" tags again.
2014-08-27Document "...|..." udev match syntaxAndrei Borzenkov1-2/+10
2014-07-31man: add missing commaZbigniew Jędrzejewski-Szmek1-1/+1
2014-07-29udev: unify event timeout handlingKay Sievers1-7/+0
2014-02-25man: split out systemd.link(5) from udev(7)Tom Gundersen1-280/+8
2014-02-23core: clean up some confusing regarding SI decimal and IEC binary suffixes ↵Lennart Poettering1-3/+7
for sizes According to Wikipedia it is customary to specify hardware metrics and transfer speeds to the basis 1000 (SI decimal), while software metrics and physical volatile memory (RAM) sizes to the basis 1024 (IEC binary). So far we specified everything in IEC, let's fix that and be more true to what's otherwise customary. Since we don't want to parse "Mi" instead of "M" we document each time what the context used is.
2014-02-22udev: net - allow MTU and Speed to be specified with unitsTom Gundersen1-4/+5
This also changes the names to MTUBytes and BitsPerSecond, respectively. Notice that the speed was mistakenly documented to be in bytes before this change.
2014-02-21net-util: match on the driver as exposed by ethtool if DRIVER not setTom Gundersen1-1/+3
Also fix a copy-paste error that broke matching on interface name.
2014-02-21man: suffix networkd config file options with "="Lennart Poettering1-21/+21
That's what we do for all options in the other man pages. It helps clarifying that these are options that values need to be assigned to.
2014-02-21.network/.netdev/.link: allow to match on architectureTom Gundersen1-0/+9
2014-02-20man: networkd/udev - add to [Match] documentationTom Gundersen1-1/+31
2014-02-19udev: net-config - allow interface names to be set from the hwdbTom Gundersen1-0/+9
2014-02-18net-match: fix Driver= matchTom Gundersen1-1/+2
It should match on the driver of the parent device.
2014-02-18doc: orthographic correctionsJan Engelhardt1-2/+2
2014-02-17doc: resolve missing/extraneous words or inappropriate formsJan Engelhardt1-1/+1
Issues fixed: * missing words required by grammar * duplicated or extraneous words * inappropriate forms (e.g. singular/plural), and declinations * orthographic misspellings
2014-02-14man: replace STDOUT with standard output, etc.Zbigniew Jędrzejewski-Szmek1-1/+1
Actually 'STDOUT' is something that doesn't appear anywhere: in the stdlib we have 'stdin', and there's only the constant STDOUT_FILENO, so there's no reason to use capitals. When refering to code, STDOUT/STDOUT/STDERR are replaced with stdin/stdout/stderr, and in other places they are replaced with normal phrases like standard output, etc.
2014-02-14man: fix grammatical errors and other formatting issuesJason St. John1-75/+120
* standardize capitalization of STDIN, STDOUT, and STDERR * reword some sentences for clarity * reflow some very long lines to be shorter than ~80 characters * add some missing <literal>, <constant>, <varname>, <option>, and <filename> tags
2014-01-04Revert "net-util: add support for Type=ethernet"Tom Gundersen1-2/+1
This reverts commit 4cd1214db6cf4b262e8ce6381bc710091b375c96. This may still be fixed in the kernel, revert this for now until we see how it all shakes out.
2014-01-03net-util: add support for Type=ethernetTom Gundersen1-1/+2
When DEVTYPE is not set for a nic, it means it is a wired/ethernet device.
2013-12-25man: grammar and wording improvementsJan Engelhardt1-6/+6
This is a recurring submission and includes corrections to: - missing words, preposition choice. - change of /lib to /usr/lib, because that is what most distros are using as the system-wide location for systemd/udev files.
2013-11-25udev: net_setup_link - don't use Description as AliasTom Gundersen1-1/+7
Use Description only internally, and allow Alias to be set as a separate option. For instance SNMP uses ifalias for a specific purpose, so let's not write to it by default.
2013-11-11udev.xml: add missing </para> tagDave Reisner1-1/+1
2013-11-10udev.xml: minor fixes to network link configurationDave Reisner1-3/+3
- Refer to net_setup_link, not net-setup-link - Mention the required file extension earlier