diff options
author | Wouter Verhelst <w@uter.be> | 2016-04-18 16:29:10 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-04-18 16:29:10 +0200 |
commit | 565754a37efb12916375c68748eefd357aceaeca (patch) | |
tree | 636ac08d285a776526f7c16d57f6607a0f4ebd0d /hwdb/20-pci-classes.hwdb | |
parent | 0b6b45d5e09b48c0637caab85f3b667ec7e8afef (diff) |
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>
Diffstat (limited to 'hwdb/20-pci-classes.hwdb')
0 files changed, 0 insertions, 0 deletions