Merge remote-tracking branch 'qubesos/pr/31'

* qubesos/pr/31:
  udev-block-add-change: ignore unconnected Network Block Device
This commit is contained in:
Marek Marczykowski-Górecki 2018-01-05 17:43:25 +01:00
commit ab2fa766b9
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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)