Treat iSCSI targets as block devices.
[yaboot.git] / second / partition.c
index d20a0ede652c08a37494cd323146c59396541b71..4381770fcca5facc0171fc52308b273478235608 100644 (file)
@@ -400,7 +400,8 @@ get_part_type(char *device, int partition)
      struct partition_t*       found;
      char *type = NULL;
 
-     if (prom_get_devtype(device) != FILE_DEVICE_BLOCK)
+     int device_kind = prom_get_devtype(device);
+     if (device_kind != FILE_DEVICE_BLOCK && device_kind != FILE_DEVICE_ISCSI)
          return NULL;
 
      parts = partitions_lookup(device);