Merge remote-tracking branch 'qubesos/pr/31'
* qubesos/pr/31: udev-block-add-change: ignore unconnected Network Block Device
This commit is contained in:
commit
ab2fa766b9
@ -119,6 +119,12 @@ if [ "$MAJOR" -eq 7 -a ! -d /sys/$DEVPATH/loop ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# or unconnected Network Block Device
|
||||||
|
if [ "$MAJOR" -eq 43 -a ! -e /sys/$DEVPATH/pid ]; then
|
||||||
|
xs_remove
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# ... and loop devices from excluded directories
|
# ... and loop devices from excluded directories
|
||||||
if [[ "$NAME" = 'loop'* ]]; then
|
if [[ "$NAME" = 'loop'* ]]; then
|
||||||
backing_file=$(cat /sys/block/${NAME}/loop/backing_file)
|
backing_file=$(cat /sys/block/${NAME}/loop/backing_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user