X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fudev.c;h=7a99eeaf9d772433c4e7f507a4be2f5e7f5dfa06;hp=0b2ec2fd905d3da2bad341a26653c738f68da2a8;hb=43f340b66d8323c6e797868d07fc98482052ba35;hpb=bb3ddd63720501f451d3f2797f315c25efd3bd4a diff --git a/discover/udev.c b/discover/udev.c index 0b2ec2f..7a99eea 100644 --- a/discover/udev.c +++ b/discover/udev.c @@ -69,6 +69,7 @@ static int udev_handle_block_add(struct pb_udev *udev, struct udev_device *dev, const char *path; const char *node; const char *prop; + const char *type; bool cdrom; typestr = udev_device_get_devtype(dev); @@ -101,6 +102,11 @@ static int udev_handle_block_add(struct pb_udev *udev, struct udev_device *dev, } } + type = udev_device_get_property_value(dev, "ID_FS_TYPE"); + if (!type) { + pb_debug("SKIP: %s: no ID_FS_TYPE property\n", name); + return 0; + } /* We may see multipath devices; they'll have the same uuid as an * existing device, so only parse the first. */