dest = talloc(ctx, struct config);
dest->autoboot_enabled = src->autoboot_enabled;
dest->autoboot_timeout_sec = src->autoboot_timeout_sec;
+ dest->safe_mode = src->safe_mode;
dest->network.n_interfaces = src->network.n_interfaces;
dest->network.interfaces = talloc_array(dest, struct interface_config *,
dest->boot_priorities[i].type = src->boot_priorities[i].type;
}
+ if (src->boot_device && strlen(src->boot_device))
+ dest->boot_device = talloc_strdup(dest, src->boot_device);
+ else
+ dest->boot_device = NULL;
+
return dest;
}