summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.c
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2012-03-26 20:18:32 -0700
committerGeoff Levand <geoff@infradead.org>2012-03-26 20:18:32 -0700
commit7fed96b80c3e81ad73539c90310ab94166ff0229 (patch)
tree2dbf72c2ad30996120b86dcac2612ad568a3f67e /discover/device-handler.c
parentf1dad9c1eb7cdc583a56734e9d46a1ce5bb755d5 (diff)
downloadtalos-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.c6
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);
OpenPOWER on IntegriCloud