diff options
author | Geoff Levand <geoff@infradead.org> | 2012-03-26 20:18:32 -0700 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2012-03-26 20:18:32 -0700 |
commit | 7fed96b80c3e81ad73539c90310ab94166ff0229 (patch) | |
tree | 2dbf72c2ad30996120b86dcac2612ad568a3f67e /discover/device-handler.c | |
parent | f1dad9c1eb7cdc583a56734e9d46a1ce5bb755d5 (diff) | |
download | talos-petitboot-7fed96b80c3e81ad73539c90310ab94166ff0229.tar.gz talos-petitboot-7fed96b80c3e81ad73539c90310ab94166ff0229.zip |
pb-discover: Ignore ram, loop and no-name devices
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover/device-handler.c')
-rw-r--r-- | discover/device-handler.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c index 0783181..12bc40f 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -294,11 +294,7 @@ static int handle_add_udev_event(struct device_handler *handler, ctx->id = talloc_strdup(ctx, event->device); devname = event_get_param(ctx->event, "DEVNAME"); - if (!devname) { - pb_log("no devname for %s?\n", event->device); - return 0; - } - + assert(devname); ctx->device_path = talloc_strdup(ctx, devname); rc = mount_device(ctx); |