Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx> --- osinfo/osinfo_loader.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/osinfo/osinfo_loader.c b/osinfo/osinfo_loader.c index 030062b..4367121 100644 --- a/osinfo/osinfo_loader.c +++ b/osinfo/osinfo_loader.c @@ -1078,6 +1078,8 @@ static OsinfoMedia *osinfo_loader_media(OsinfoLoader *loader, xmlGetProp(root, BAD_CAST OSINFO_MEDIA_PROP_INSTALLER_REBOOTS); xmlChar *eject_after_install = xmlGetProp(root, BAD_CAST OSINFO_MEDIA_PROP_EJECT_AFTER_INSTALL); + xmlChar *installer_script = + xmlGetProp(root, BAD_CAST OSINFO_MEDIA_PROP_INSTALLER_SCRIPT); const OsinfoEntityKey keys[] = { { OSINFO_MEDIA_PROP_URL, G_TYPE_STRING }, { OSINFO_MEDIA_PROP_KERNEL, G_TYPE_STRING }, @@ -1117,6 +1119,13 @@ static OsinfoMedia *osinfo_loader_media(OsinfoLoader *loader, xmlFree(eject_after_install); } + if (installer_script) { + osinfo_entity_set_param(OSINFO_ENTITY(media), + OSINFO_MEDIA_PROP_INSTALLER_SCRIPT, + (gchar *)installer_script); + xmlFree(installer_script); + } + gint nnodes = osinfo_loader_nodeset("./variant", loader, ctxt, &nodes, err); if (error_is_set(err)) { g_object_unref(media); -- 2.19.1 _______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo