Blame SOURCES/tuned-2.3.0-handle-root-block-devices.patch

4fe94b
diff --git a/tuned/plugins/plugin_disk.py b/tuned/plugins/plugin_disk.py
4fe94b
index e799895..6101621 100644
4fe94b
--- a/tuned/plugins/plugin_disk.py
4fe94b
+++ b/tuned/plugins/plugin_disk.py
4fe94b
@@ -31,10 +31,10 @@ class DiskPlugin(hotplug.Plugin):
4fe94b
 		self._free_devices = self._devices.copy()
4fe94b
 
4fe94b
 	def _device_is_supported(cls, device):
4fe94b
-		return  device.device_type == "disk" \
4fe94b
-			and device.attributes.get("removable", None) == "0" \
4fe94b
-			and device.parent is not None \
4fe94b
-			and device.parent.subsystem in ["scsi", "virtio"]
4fe94b
+		return  device.device_type == "disk" and \
4fe94b
+			device.attributes.get("removable", None) == "0" and \
4fe94b
+			(device.parent is None or \
4fe94b
+					device.parent.subsystem in ["scsi", "virtio"])
4fe94b
 
4fe94b
 	def _hardware_events_init(self):
4fe94b
 		self._hardware_inventory.subscribe(self, "block", self._hardware_events_callback)