mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 23:19:50 +00:00
trivial: Use DEVPATH for the physical ID when using scsi devices
This commit is contained in:
parent
f6838c738a
commit
bdd17b6ffc
@ -436,7 +436,8 @@ fu_udev_device_set_physical_id (FuUdevDevice *self, const gchar *subsystem, GErr
|
||||
return FALSE;
|
||||
}
|
||||
physical_id = g_strdup_printf ("PCI_SLOT_NAME=%s", tmp);
|
||||
} else if (g_strcmp0 (subsystem, "usb") == 0) {
|
||||
} else if (g_strcmp0 (subsystem, "usb") == 0 ||
|
||||
g_strcmp0 (subsystem, "scsi") == 0) {
|
||||
tmp = g_udev_device_get_property (udev_device, "DEVPATH");
|
||||
if (tmp == NULL) {
|
||||
g_set_error_literal (error,
|
||||
|
Loading…
Reference in New Issue
Block a user