]> git.ozlabs.org Git - petitboot/blobdiff - discover/event-parser.c
protocol: Separate device add from boot-option add messages
[petitboot] / discover / event-parser.c
index 0b96a09ba72365b774b406d94d30feb60f247530..1eec5c9cd410ca55f7a90a33f987e82a83a06c7d 100644 (file)
@@ -31,6 +31,7 @@ int parse_user_event(struct device *device, struct event *event)
        }
 
        opt->id = talloc_asprintf(opt, "%s#%s", device->id, p);
+       opt->device_id = talloc_strdup(opt, device->id);
        opt->name = talloc_strdup(opt, p);
 
        p = event_get_param(event, "image");