+ struct process *process;
+ int rc;
+ const char *argv[] = {
+ sysinfo_helper, NULL, NULL,
+ };
+
+ process = process_create(info);
+ process->path = sysinfo_helper;
+ process->argv = argv;
+ process->keep_stdout = true;
+
+ argv[1] = "--type";
+ rc = process_run_sync(process);
+
+ if (!rc) {
+ info->type = talloc_strndup(info, process->stdout_buf,
+ process->stdout_len);
+ }
+
+ argv[1] = "--id";
+ rc = process_run_sync(process);
+
+ if (!rc) {
+ info->identifier = talloc_strndup(info, process->stdout_buf,
+ process->stdout_len);
+ }
+
+ process_release(process);