1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 17:51:22 +03:00
systemd/rules
Wouter Verhelst 565754a37e Mark nbd as inactive until connected (#2422)
Currently, 99-systemd.rules.in contains a line for network block
devices, which mark them as inactive until the first change event, and
as active from then on forward. This is not correct. A network block
device can be connected or disconnected; this state is signalled by the
presence or absense of a "pid" file, which contains the PID of the
nbd client userspace process that started the connection.

Update the rules file so that it checks for the presence of that file to
decide what to set SYSTEMD_READY to.

Note that current kernels do issue a change event upon connecting the
device, but not yet upon disconnecting. While it's possible to wait
until that's been fixed, the behaviour of the rule with TEST!="pid" in
the absence of a proper uevent is exactly the same as the behaviour of
the old rule; so it should be safe to apply now.

Signed-off-by: Wouter Verhelst <w@uter.be>
2016-04-18 16:29:10 +02:00
..
.gitignore
50-udev-default.rules 50-udev-default.rules: don't run anything but REMOVE_CMD on remove 2015-03-27 15:42:04 +01:00
60-block.rules rules: whitelist xvd* devices 2015-06-08 18:22:21 -07:00
60-cdrom_id.rules rules: clean up stale CD drive mounts after ejection 2015-01-28 17:04:06 +01:00
60-drm.rules rules: simply 60-drm.rules 2013-11-03 16:17:14 +01:00
60-evdev.rules rules: finish incomplete rename 2015-04-12 10:20:24 -04:00
60-persistent-alsa.rules
60-persistent-input.rules
60-persistent-storage-tape.rules
60-persistent-storage.rules UML: Fix block device setup 2015-08-09 18:07:55 +02:00
60-persistent-v4l.rules
60-serial.rules rules: merge tty and serial rules file 2015-03-12 17:22:19 +01:00
64-btrfs.rules
70-mouse.rules hwdb: add rule and first entry for PS/2 mice 2014-12-24 08:08:23 +10:00
75-net-description.rules rules: net, tty description - ask hwdb explicitly for pci data 2013-07-21 16:33:27 +02:00
75-probe_mtd.rules
78-sound-card.rules rules: Add more firewire properties for sound, to be closer to USB and PCI 2015-04-23 13:40:54 +02:00
80-drivers.rules rules: drivers - do not reset RUN list 2014-01-03 01:32:03 +01:00
80-net-setup-link.rules udev: import the full db on MOVE events for devices without dev_t 2014-09-09 15:03:49 +02:00
99-systemd.rules.in Mark nbd as inactive until connected (#2422) 2016-04-18 16:29:10 +02:00
Makefile backlight: add minimal tool to save/restore screen brightness across reboots 2013-08-14 01:57:02 +02:00