99-systemd.rules.in revision 88e995fd720a93460e7c3f38ac24512e6d96b3e8
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# This file is part of systemd.
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend#
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# systemd is free software; you can redistribute it and/or modify it
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# under the terms of the GNU Lesser General Public License as published by
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# the Free Software Foundation; either version 2.1 of the License, or
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# (at your option) any later version.
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendACTION=="remove", GOTO="systemd_end"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="tty", KERNEL=="tty[a-zA-Z]*|hvc*|xvc*|hvsi*", TAG+="systemd"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendKERNEL=="vport*", TAG+="systemd"
0ce5630695a7aa568811a9dd0aceedd685f040dend
42af92a661a06b3cebc88d585aad75064a309d51ndSUBSYSTEM=="block", KERNEL!="ram*|loop*", TAG+="systemd"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="block", KERNEL!="ram*|loop*", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", ENV{SYSTEMD_READY}="0"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# Ignore encrypted devices with no identified superblock on it, since
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# we are probably still calling mke2fs or mkswap on it.
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="block", KERNEL!="ram*|loop*", ENV{DM_UUID}=="CRYPT-*", ENV{ID_PART_TABLE_TYPE}=="", ENV{ID_FS_USAGE}=="", ENV{SYSTEMD_READY}="0"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# We need a hardware independent way to identify network devices. We
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# use the /sys/subsystem path for this. Current vanilla kernels don't
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# actually support that hierarchy right now, however upcoming kernels
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# will. HAL and udev internally support /sys/subsystem already, hence
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# it should be safe to use this here, too. This is mostly just an
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# identification string for systemd, so whether the path actually is
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# accessible or not does not matter as long as it is unique and in the
05ede5110427cb9dc071cc671d5aaba5d3b88c79nd# filesystem namespace.
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend#
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# http://git.kernel.org/?p=linux/hotplug/udev.git;a=blob;f=libudev/libudev-enumerate.c;h=da831449dcaf5e936a14409e8e68ab12d30a98e2;hb=HEAD#l742
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="net", KERNEL!="lo", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/net/devices/$name"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/bluetooth/devices/%k"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_WANTS}="bluetooth.target"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendENV{ID_SMARTCARD_READER}=="*?", TAG+="systemd", ENV{SYSTEMD_WANTS}="smartcard.target"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="sound", KERNEL=="card*", TAG+="systemd", ENV{SYSTEMD_WANTS}="sound.target"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="printer", TAG+="systemd", ENV{SYSTEMD_WANTS}="printer.target"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="usb", KERNEL=="lp*", TAG+="systemd", ENV{SYSTEMD_WANTS}="printer.target"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", TAG+="systemd", ENV{SYSTEMD_WANTS}="printer.target"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# Apply sysctl variables to network devices (and only to those) as they appear.
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="net", KERNEL!="lo", RUN+="@rootlibexecdir@/systemd-sysctl --prefix=/proc/sys/net/ipv4/conf/$name --prefix=/proc/sys/net/ipv4/neigh/$name --prefix=/proc/sys/net/ipv6/conf/$name --prefix=/proc/sys/net/ipv6/neigh/$name"
d2b809e5d72658bff23819d8b77f20e4939af541nd
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# Asynchronously mount file systems implemented by these modules as
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend# soon as they are loaded.
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="module", KERNEL=="fuse", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}="sys-fs-fuse-connections.mount"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendSUBSYSTEM=="module", KERNEL=="configfs", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}="sys-kernel-config.mount"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fendLABEL="systemd_end"
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend