/* fedora-installer.c generated by valac 0.18.0.29-efcd0, the Vala compiler
 * generated from fedora-installer.vala, do not modify */

/* This file is part of GNOME Boxes. License: LGPLv2+*/

#include <glib.h>
#include <glib-object.h>
#include <libvirt-gconfig/libvirt-gconfig.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <libcommon.h>
#include <osinfo/osinfo.h>


#define BOXES_TYPE_INSTALLER_MEDIA (boxes_installer_media_get_type ())
#define BOXES_INSTALLER_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMedia))
#define BOXES_INSTALLER_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMediaClass))
#define BOXES_IS_INSTALLER_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_INSTALLER_MEDIA))
#define BOXES_IS_INSTALLER_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_INSTALLER_MEDIA))
#define BOXES_INSTALLER_MEDIA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMediaClass))

typedef struct _BoxesInstallerMedia BoxesInstallerMedia;
typedef struct _BoxesInstallerMediaClass BoxesInstallerMediaClass;
typedef struct _BoxesInstallerMediaPrivate BoxesInstallerMediaPrivate;

#define BOXES_TYPE_UNATTENDED_INSTALLER (boxes_unattended_installer_get_type ())
#define BOXES_UNATTENDED_INSTALLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UNATTENDED_INSTALLER, BoxesUnattendedInstaller))
#define BOXES_UNATTENDED_INSTALLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_UNATTENDED_INSTALLER, BoxesUnattendedInstallerClass))
#define BOXES_IS_UNATTENDED_INSTALLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UNATTENDED_INSTALLER))
#define BOXES_IS_UNATTENDED_INSTALLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_UNATTENDED_INSTALLER))
#define BOXES_UNATTENDED_INSTALLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_UNATTENDED_INSTALLER, BoxesUnattendedInstallerClass))

typedef struct _BoxesUnattendedInstaller BoxesUnattendedInstaller;
typedef struct _BoxesUnattendedInstallerClass BoxesUnattendedInstallerClass;
typedef struct _BoxesUnattendedInstallerPrivate BoxesUnattendedInstallerPrivate;

#define BOXES_TYPE_UNATTENDED_FILE (boxes_unattended_file_get_type ())
#define BOXES_UNATTENDED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UNATTENDED_FILE, BoxesUnattendedFile))
#define BOXES_IS_UNATTENDED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UNATTENDED_FILE))
#define BOXES_UNATTENDED_FILE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_UNATTENDED_FILE, BoxesUnattendedFileIface))

typedef struct _BoxesUnattendedFile BoxesUnattendedFile;
typedef struct _BoxesUnattendedFileIface BoxesUnattendedFileIface;

#define TYPE_AVATAR_FORMAT (avatar_format_get_type ())
#define AVATAR_FORMAT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AVATAR_FORMAT, AvatarFormat))
#define AVATAR_FORMAT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AVATAR_FORMAT, AvatarFormatClass))
#define IS_AVATAR_FORMAT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AVATAR_FORMAT))
#define IS_AVATAR_FORMAT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AVATAR_FORMAT))
#define AVATAR_FORMAT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AVATAR_FORMAT, AvatarFormatClass))

typedef struct _AvatarFormat AvatarFormat;
typedef struct _AvatarFormatClass AvatarFormatClass;

#define BOXES_TYPE_FEDORA_INSTALLER (boxes_fedora_installer_get_type ())
#define BOXES_FEDORA_INSTALLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_FEDORA_INSTALLER, BoxesFedoraInstaller))
#define BOXES_FEDORA_INSTALLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_FEDORA_INSTALLER, BoxesFedoraInstallerClass))
#define BOXES_IS_FEDORA_INSTALLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_FEDORA_INSTALLER))
#define BOXES_IS_FEDORA_INSTALLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_FEDORA_INSTALLER))
#define BOXES_FEDORA_INSTALLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_FEDORA_INSTALLER, BoxesFedoraInstallerClass))

typedef struct _BoxesFedoraInstaller BoxesFedoraInstaller;
typedef struct _BoxesFedoraInstallerClass BoxesFedoraInstallerClass;
typedef struct _BoxesFedoraInstallerPrivate BoxesFedoraInstallerPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define BOXES_FEDORA_INSTALLER_TYPE_KBD_LAYOUT (boxes_fedora_installer_kbd_layout_get_type ())
typedef struct _BoxesFedoraInstallerKbdLayout BoxesFedoraInstallerKbdLayout;

#define BOXES_TYPE_ISO_EXTRACTOR (boxes_iso_extractor_get_type ())
#define BOXES_ISO_EXTRACTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_ISO_EXTRACTOR, BoxesISOExtractor))
#define BOXES_ISO_EXTRACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_ISO_EXTRACTOR, BoxesISOExtractorClass))
#define BOXES_IS_ISO_EXTRACTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_ISO_EXTRACTOR))
#define BOXES_IS_ISO_EXTRACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_ISO_EXTRACTOR))
#define BOXES_ISO_EXTRACTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_ISO_EXTRACTOR, BoxesISOExtractorClass))

typedef struct _BoxesISOExtractor BoxesISOExtractor;
typedef struct _BoxesISOExtractorClass BoxesISOExtractorClass;
typedef struct _BoxesFedoraInstallerPrepareForInstallationData BoxesFedoraInstallerPrepareForInstallationData;
typedef struct _BoxesFedoraInstallerExtractBootFilesData BoxesFedoraInstallerExtractBootFilesData;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _BoxesFedoraInstallerCopyFileData BoxesFedoraInstallerCopyFileData;
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))

struct _BoxesInstallerMedia {
	GObject parent_instance;
	BoxesInstallerMediaPrivate * priv;
	OsinfoOs* os;
	OsinfoResources* resources;
	OsinfoMedia* os_media;
	gchar* label;
	gchar* device_file;
	gchar* mount_point;
	gboolean from_image;
};

struct _BoxesInstallerMediaClass {
	GObjectClass parent_class;
	void (*set_direct_boot_params) (BoxesInstallerMedia* self, GVirConfigDomainOs* os);
	void (*prepare_for_installation) (BoxesInstallerMedia* self, const gchar* vm_name, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*prepare_for_installation_finish) (BoxesInstallerMedia* self, GAsyncResult* _res_, GError** error);
	void (*setup_domain_config) (BoxesInstallerMedia* self, GVirConfigDomain* domain);
	void (*populate_setup_vbox) (BoxesInstallerMedia* self, GtkVBox* setup_vbox);
	GList* (*get_vm_properties) (BoxesInstallerMedia* self);
	guint64 (*get_installed_size) (BoxesInstallerMedia* self);
	gboolean (*get_need_user_input_for_vm_creation) (BoxesInstallerMedia* self);
	gboolean (*get_ready_to_create) (BoxesInstallerMedia* self);
	gboolean (*get_supports_virtio_disk) (BoxesInstallerMedia* self);
};

struct _BoxesUnattendedFileIface {
	GTypeInterface parent_iface;
	void (*get_source_file) (BoxesUnattendedFile* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GFile* (*get_source_file_finish) (BoxesUnattendedFile* self, GAsyncResult* _res_, GError** error);
	const gchar* (*get_src_path) (BoxesUnattendedFile* self);
	void (*set_src_path) (BoxesUnattendedFile* self, const gchar* value);
	const gchar* (*get_dest_name) (BoxesUnattendedFile* self);
	void (*set_dest_name) (BoxesUnattendedFile* self, const gchar* value);
	BoxesUnattendedInstaller* (*get_installer) (BoxesUnattendedFile* self);
	void (*set_installer) (BoxesUnattendedFile* self, BoxesUnattendedInstaller* value);
};

struct _BoxesUnattendedInstaller {
	BoxesInstallerMedia parent_instance;
	BoxesUnattendedInstallerPrivate * priv;
	GDataStreamNewlineType newline_type;
	GFile* disk_file;
	GList* unattended_files;
	GtkGrid* setup_grid;
	gint setup_grid_n_rows;
	GtkLabel* setup_label;
	GtkHBox* setup_hbox;
	GtkSwitch* express_toggle;
	GtkEntry* username_entry;
	GtkEntry* password_entry;
	gchar* timezone;
	gchar* lang;
	gchar* hostname;
	AvatarFormat* avatar_format;
};

struct _BoxesUnattendedInstallerClass {
	BoxesInstallerMediaClass parent_class;
	gchar* (*fill_unattended_data) (BoxesUnattendedInstaller* self, const gchar* data, GError** error);
	void (*setup_ui) (BoxesUnattendedInstaller* self);
	void (*clean_up) (BoxesUnattendedInstaller* self, GError** error);
	GVirConfigDomainDisk* (*get_unattended_disk_config) (BoxesUnattendedInstaller* self);
	gboolean (*get_ready_for_express) (BoxesUnattendedInstaller* self);
};

struct _BoxesFedoraInstaller {
	BoxesUnattendedInstaller parent_instance;
	BoxesFedoraInstallerPrivate * priv;
};

struct _BoxesFedoraInstallerClass {
	BoxesUnattendedInstallerClass parent_class;
};

struct _BoxesFedoraInstallerPrivate {
	GFile* kernel_file;
	GFile* initrd_file;
	gchar* kbd;
};

struct _BoxesFedoraInstallerKbdLayout {
	gchar* xkb_layout;
	gchar* xkb_variant;
	gchar* console_layout;
};

struct _BoxesFedoraInstallerPrepareForInstallationData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesFedoraInstaller* self;
	gchar* vm_name;
	GCancellable* cancellable;
	const gchar* _tmp0_;
	GCancellable* _tmp1_;
	GtkSwitch* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
	OsinfoMedia* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gboolean _tmp10_;
	OsinfoMedia* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	gboolean _tmp15_;
	const gchar* _tmp16_;
	BoxesISOExtractor* _tmp17_;
	BoxesISOExtractor* extractor;
	BoxesISOExtractor* _tmp18_;
	GCancellable* _tmp19_;
	BoxesISOExtractor* _tmp20_;
	GCancellable* _tmp21_;
	GError * _inner_error_;
};

struct _BoxesFedoraInstallerExtractBootFilesData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesFedoraInstaller* self;
	BoxesISOExtractor* extractor;
	GCancellable* cancellable;
	BoxesISOExtractor* _tmp0_;
	OsinfoMedia* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* src_path;
	gchar* _tmp7_;
	gchar* dest_path;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	GCancellable* _tmp10_;
	GFile* _tmp11_;
	GFile* _tmp12_;
	BoxesISOExtractor* _tmp13_;
	OsinfoMedia* _tmp14_;
	gchar* _tmp15_;
	gchar* _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	gchar* _tmp21_;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	GCancellable* _tmp24_;
	GFile* _tmp25_;
	GFile* _tmp26_;
	GError * _inner_error_;
};

struct _BoxesFedoraInstallerCopyFileData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesFedoraInstaller* self;
	gchar* src_path;
	gchar* dest_path;
	GCancellable* cancellable;
	GFile* result;
	const gchar* _tmp0_;
	GFile* _tmp1_;
	GFile* src_file;
	const gchar* _tmp2_;
	GFile* _tmp3_;
	GFile* dest_file;
	const gchar* _tmp4_;
	const gchar* _tmp5_;
	GCancellable* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	GError* _error_;
	GError * _inner_error_;
};


static gpointer boxes_fedora_installer_parent_class = NULL;
static GRegex* boxes_fedora_installer_kbd_regex;
static GRegex* boxes_fedora_installer_kbd_regex = NULL;

GType boxes_installer_media_get_type (void) G_GNUC_CONST;
GType boxes_unattended_installer_get_type (void) G_GNUC_CONST;
GType boxes_unattended_file_get_type (void) G_GNUC_CONST;
gpointer avatar_format_ref (gpointer instance);
void avatar_format_unref (gpointer instance);
GParamSpec* param_spec_avatar_format (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_avatar_format (GValue* value, gpointer v_object);
void value_take_avatar_format (GValue* value, gpointer v_object);
gpointer value_get_avatar_format (const GValue* value);
GType avatar_format_get_type (void) G_GNUC_CONST;
GType boxes_fedora_installer_get_type (void) G_GNUC_CONST;
#define BOXES_FEDORA_INSTALLER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_FEDORA_INSTALLER, BoxesFedoraInstallerPrivate))
enum  {
	BOXES_FEDORA_INSTALLER_DUMMY_PROPERTY
};
static GType boxes_fedora_installer_kbd_layout_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static BoxesFedoraInstallerKbdLayout* boxes_fedora_installer_kbd_layout_dup (const BoxesFedoraInstallerKbdLayout* self);
static void boxes_fedora_installer_kbd_layout_free (BoxesFedoraInstallerKbdLayout* self);
static void boxes_fedora_installer_kbd_layout_copy (const BoxesFedoraInstallerKbdLayout* self, BoxesFedoraInstallerKbdLayout* dest);
static void boxes_fedora_installer_kbd_layout_destroy (BoxesFedoraInstallerKbdLayout* self);
BoxesFedoraInstaller* boxes_fedora_installer_new_from_media (BoxesInstallerMedia* media, GError** error);
BoxesFedoraInstaller* boxes_fedora_installer_construct_from_media (GType object_type, BoxesInstallerMedia* media, GError** error);
BoxesUnattendedInstaller* boxes_unattended_installer_construct_from_media (GType object_type, BoxesInstallerMedia* media, const gchar* unattended_src_path, const gchar* unattended_dest_name, AvatarFormat* avatar_format, GError** error);
static gchar* boxes_fedora_installer_fetch_console_kbd_layout (BoxesFedoraInstaller* self);
static void boxes_fedora_installer_real_set_direct_boot_params (BoxesInstallerMedia* base, GVirConfigDomainOs* os);
static void boxes_fedora_installer_real_prepare_for_installation_data_free (gpointer _data);
static void boxes_fedora_installer_real_prepare_for_installation (BoxesInstallerMedia* base, const gchar* vm_name, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_fedora_installer_real_prepare_for_installation_co (BoxesFedoraInstallerPrepareForInstallationData* _data_);
void boxes_installer_media_prepare_for_installation (BoxesInstallerMedia* self, const gchar* vm_name, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_installer_media_prepare_for_installation_finish (BoxesInstallerMedia* self, GAsyncResult* _res_, GError** error);
static void boxes_fedora_installer_prepare_for_installation_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
BoxesISOExtractor* boxes_iso_extractor_new (const gchar* iso_path);
BoxesISOExtractor* boxes_iso_extractor_construct (GType object_type, const gchar* iso_path);
GType boxes_iso_extractor_get_type (void) G_GNUC_CONST;
void boxes_iso_extractor_mount_media (BoxesISOExtractor* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_iso_extractor_mount_media_finish (BoxesISOExtractor* self, GAsyncResult* _res_, GError** error);
static void boxes_fedora_installer_extract_boot_files (BoxesFedoraInstaller* self, BoxesISOExtractor* extractor, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_fedora_installer_extract_boot_files_finish (BoxesFedoraInstaller* self, GAsyncResult* _res_, GError** error);
static void boxes_fedora_installer_real_clean_up (BoxesUnattendedInstaller* base, GError** error);
void boxes_unattended_installer_clean_up (BoxesUnattendedInstaller* self, GError** error);
static gchar* boxes_fedora_installer_real_fill_unattended_data (BoxesUnattendedInstaller* base, const gchar* data, GError** error);
gchar* boxes_unattended_installer_fill_unattended_data (BoxesUnattendedInstaller* self, const gchar* data, GError** error);
static void boxes_fedora_installer_extract_boot_files_data_free (gpointer _data);
static gboolean boxes_fedora_installer_extract_boot_files_co (BoxesFedoraInstallerExtractBootFilesData* _data_);
gchar* boxes_iso_extractor_get_absolute_path (BoxesISOExtractor* self, const gchar* relative_path, GError** error);
gchar* boxes_unattended_installer_get_user_unattended (BoxesUnattendedInstaller* self, const gchar* suffix);
static void boxes_fedora_installer_copy_file (BoxesFedoraInstaller* self, const gchar* src_path, const gchar* dest_path, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GFile* boxes_fedora_installer_copy_file_finish (BoxesFedoraInstaller* self, GAsyncResult* _res_, GError** error);
static void boxes_fedora_installer_extract_boot_files_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void boxes_fedora_installer_copy_file_data_free (gpointer _data);
static gboolean boxes_fedora_installer_copy_file_co (BoxesFedoraInstallerCopyFileData* _data_);
static void boxes_fedora_installer_copy_file_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static gchar** _vala_array_dup1 (gchar** self, int length);
BoxesFedoraInstaller* boxes_fedora_installer_new (void);
BoxesFedoraInstaller* boxes_fedora_installer_construct (GType object_type);
BoxesUnattendedInstaller* boxes_unattended_installer_construct (GType object_type);
static void boxes_fedora_installer_finalize (GObject* obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);

static const BoxesFedoraInstallerKbdLayout BOXES_FEDORA_INSTALLER_kbd_layouts[65] = {{"ara", NULL, "ar-azerty"}, {"ara", "azerty", "ar-azerty"}, {"ara", "azerty_digits", "ar-azerty-digits"}, {"ara", "digits", "ar-digits"}, {"ara", "qwerty", "ar-qwerty"}, {"ara", "qwerty_digits", "ar-qwerty-digits"}, {"be", NULL, "be-latin1"}, {"bg", NULL, "bg_bds-utf8"}, {"bg", "phonetic", "bg_pho-utf8"}, {"bg", "bas_phonetic", "bg_pho-utf8"}, {"br", NULL, "br-abnt2"}, {"ca(fr)", NULL, "cf"}, {"hr", NULL, "croat"}, {"cz", NULL, "cz-us-qwertz"}, {"cz", "qwerty", "cz-lat2"}, {"cz", "", "cz-us-qwertz"}, {"de", NULL, "de"}, {"de", "nodeadkeys", "de-latin1-nodeadkeys"}, {"dev", NULL, "dev"}, {"dk", NULL, "dk"}, {"dk", "dvorak", "dk-dvorak"}, {"es", NULL, "es"}, {"ee", NULL, "et"}, {"fi", NULL, "fi"}, {"fr", NULL, "fr"}, {"fr", "latin9", "fr-latin9"}, {"gr", NULL, "gr"}, {"gur", NULL, "gur"}, {"hu", NULL, "hu"}, {"hu", "qwerty", "hu101"}, {"ie", NULL, "ie"}, {"in", NULL, "us"}, {"in", "ben", "ben"}, {"in", "ben-probhat", "ben_probhat"}, {"in", "guj", "guj"}, {"in", "tam", "tml-inscript"}, {"in", "tam_TAB", "tml-uni"}, {"is", NULL, "is-latin1"}, {"it", NULL, "it"}, {"jp", NULL, "jp106"}, {"kr", NULL, "ko"}, {"latam", NULL, "la-latin1"}, {"mkd", NULL, "mk-utf"}, {"nl", NULL, "nl"}, {"no", NULL, "no"}, {"pl", NULL, "pl2"}, {"pt", NULL, "pt-latin1"}, {"ro", NULL, "ro"}, {"ro", "std", "ro-std"}, {"ro", "cedilla", "ro-cedilla"}, {"ro", "std_cedilla", "ro-std-cedilla"}, {"ru", NULL, "ru"}, {"rs", NULL, "sr-cy"}, {"rs", "latin", "sr-latin"}, {"se", NULL, "sv-latin1"}, {"ch", "de_nodeadkeys", "sg"}, {"ch", "fr", "fr_CH"}, {"sk", NULL, "sk-qwerty"}, {"si", NULL, "slovene"}, {"tj", NULL, "tj"}, {"tr", NULL, "trq"}, {"gb", NULL, "uk"}, {"ua", NULL, "ua-utf"}, {"us", NULL, "us"}, {"us", "intl", "us-acentos"}};

BoxesFedoraInstaller* boxes_fedora_installer_construct_from_media (GType object_type, BoxesInstallerMedia* media, GError** error) {
	BoxesFedoraInstaller * self = NULL;
	gchar* _tmp0_ = NULL;
	gchar* source_path;
	BoxesInstallerMedia* _tmp1_;
	gchar* _tmp2_ = NULL;
	GError * _inner_error_ = NULL;
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_return_val_if_fail (media != NULL, NULL);
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = boxes_get_unattended ("fedora.ks");
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	source_path = _tmp0_;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = media;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self = (BoxesFedoraInstaller*) boxes_unattended_installer_construct_from_media (object_type, _tmp1_, source_path, "ks.cfg", NULL, &_inner_error_);
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_inner_error_ != NULL) {
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_propagate_error (error, _inner_error_);
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (source_path);
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (self);
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return NULL;
#line 371 "fedora-installer.c"
	}
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = boxes_fedora_installer_fetch_console_kbd_layout (self);
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (self->priv->kbd);
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self->priv->kbd = _tmp2_;
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (source_path);
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return self;
#line 383 "fedora-installer.c"
}


BoxesFedoraInstaller* boxes_fedora_installer_new_from_media (BoxesInstallerMedia* media, GError** error) {
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return boxes_fedora_installer_construct_from_media (BOXES_TYPE_FEDORA_INSTALLER, media, error);
#line 390 "fedora-installer.c"
}


static void boxes_fedora_installer_real_set_direct_boot_params (BoxesInstallerMedia* base, GVirConfigDomainOs* os) {
	BoxesFedoraInstaller * self;
	gboolean _tmp0_ = FALSE;
	GFile* _tmp1_;
	gboolean _tmp3_;
	GVirConfigDomainOs* _tmp4_;
	GFile* _tmp5_;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_;
	GVirConfigDomainOs* _tmp8_;
	GFile* _tmp9_;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_;
	GVirConfigDomainOs* _tmp12_;
#line 28 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self = (BoxesFedoraInstaller*) base;
#line 28 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_return_if_fail (os != NULL);
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = self->priv->kernel_file;
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp1_ == NULL) {
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp0_ = TRUE;
#line 418 "fedora-installer.c"
	} else {
		GFile* _tmp2_;
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp2_ = self->priv->initrd_file;
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp0_ = _tmp2_ == NULL;
#line 425 "fedora-installer.c"
	}
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp3_ = _tmp0_;
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp3_) {
#line 30 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return;
#line 433 "fedora-installer.c"
	}
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp4_ = os;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp5_ = self->priv->kernel_file;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp6_ = g_file_get_path (_tmp5_);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp7_ = _tmp6_;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	gvir_config_domain_os_set_kernel (_tmp4_, _tmp7_);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_tmp7_);
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp8_ = os;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp9_ = self->priv->initrd_file;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp10_ = g_file_get_path (_tmp9_);
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp11_ = _tmp10_;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	gvir_config_domain_os_set_ramdisk (_tmp8_, _tmp11_);
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_tmp11_);
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp12_ = os;
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	gvir_config_domain_os_set_cmdline (_tmp12_, "ks=hd:sda:/ks.cfg");
#line 463 "fedora-installer.c"
}


static void boxes_fedora_installer_real_prepare_for_installation_data_free (gpointer _data) {
	BoxesFedoraInstallerPrepareForInstallationData* _data_;
	_data_ = _data;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->vm_name);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->cancellable);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->self);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_slice_free (BoxesFedoraInstallerPrepareForInstallationData, _data_);
#line 478 "fedora-installer.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return self ? g_object_ref (self) : NULL;
#line 485 "fedora-installer.c"
}


static void boxes_fedora_installer_real_prepare_for_installation (BoxesInstallerMedia* base, const gchar* vm_name, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesFedoraInstaller * self;
	BoxesFedoraInstallerPrepareForInstallationData* _data_;
	BoxesFedoraInstaller* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	GCancellable* _tmp3_;
	GCancellable* _tmp4_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self = (BoxesFedoraInstaller*) base;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = g_slice_new0 (BoxesFedoraInstallerPrepareForInstallationData);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_fedora_installer_real_prepare_for_installation);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_fedora_installer_real_prepare_for_installation_data_free);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self = _tmp0_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = vm_name;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->vm_name);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->vm_name = _tmp2_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp3_ = cancellable;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->cancellable);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->cancellable = _tmp4_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_real_prepare_for_installation_co (_data_);
#line 527 "fedora-installer.c"
}


static void boxes_fedora_installer_real_prepare_for_installation_finish (BoxesInstallerMedia* base, GAsyncResult* _res_, GError** error) {
	BoxesFedoraInstallerPrepareForInstallationData* _data_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return;
#line 537 "fedora-installer.c"
	}
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 541 "fedora-installer.c"
}


static void boxes_fedora_installer_prepare_for_installation_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesFedoraInstallerPrepareForInstallationData* _data_;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = _user_data_;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_source_object_ = source_object;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_res_ = _res_;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_real_prepare_for_installation_co (_data_);
#line 555 "fedora-installer.c"
}


static gboolean boxes_fedora_installer_real_prepare_for_installation_co (BoxesFedoraInstallerPrepareForInstallationData* _data_) {
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	switch (_data_->_state_) {
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 0:
#line 564 "fedora-installer.c"
		goto _state_0;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 1:
#line 568 "fedora-installer.c"
		goto _state_1;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 2:
#line 572 "fedora-installer.c"
		goto _state_2;
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 3:
#line 576 "fedora-installer.c"
		goto _state_3;
		default:
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_assert_not_reached ();
#line 581 "fedora-installer.c"
	}
	_state_0:
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp0_ = _data_->vm_name;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp1_ = _data_->cancellable;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_state_ = 1;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	BOXES_INSTALLER_MEDIA_CLASS (boxes_fedora_installer_parent_class)->prepare_for_installation ((BoxesInstallerMedia*) G_TYPE_CHECK_INSTANCE_CAST (_data_->self, BOXES_TYPE_UNATTENDED_INSTALLER, BoxesUnattendedInstaller), _data_->_tmp0_, _data_->_tmp1_, boxes_fedora_installer_prepare_for_installation_ready, _data_);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 594 "fedora-installer.c"
	_state_1:
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	BOXES_INSTALLER_MEDIA_CLASS (boxes_fedora_installer_parent_class)->prepare_for_installation_finish ((BoxesInstallerMedia*) G_TYPE_CHECK_INSTANCE_CAST (_data_->self, BOXES_TYPE_UNATTENDED_INSTALLER, BoxesUnattendedInstaller), _data_->_res_, &_data_->_inner_error_);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 608 "fedora-installer.c"
		} else {
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 612 "fedora-installer.c"
		}
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 618 "fedora-installer.c"
	}
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp2_ = ((BoxesUnattendedInstaller*) _data_->self)->express_toggle;
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp3_ = gtk_switch_get_active (_data_->_tmp2_);
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 40 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (!_data_->_tmp4_) {
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 632 "fedora-installer.c"
		} else {
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 636 "fedora-installer.c"
		}
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 642 "fedora-installer.c"
	}
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp6_ = ((BoxesInstallerMedia*) _data_->self)->os_media;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp7_ = NULL;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_get (_data_->_tmp6_, "kernel-path", &_data_->_tmp7_, NULL);
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp8_ = _data_->_tmp7_;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp9_ = _data_->_tmp8_;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp10_ = _data_->_tmp9_ == NULL;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->_tmp9_);
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_tmp10_) {
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp5_ = TRUE;
#line 662 "fedora-installer.c"
	} else {
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp11_ = ((BoxesInstallerMedia*) _data_->self)->os_media;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp12_ = NULL;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_get (_data_->_tmp11_, "initrd-path", &_data_->_tmp12_, NULL);
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp13_ = _data_->_tmp12_;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp14_ = _data_->_tmp13_;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp5_ = _data_->_tmp14_ == NULL;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (_data_->_tmp14_);
#line 678 "fedora-installer.c"
	}
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp15_ = _data_->_tmp5_;
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_tmp15_) {
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 688 "fedora-installer.c"
		} else {
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 692 "fedora-installer.c"
		}
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 698 "fedora-installer.c"
	}
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp16_ = ((BoxesInstallerMedia*) _data_->self)->device_file;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp17_ = boxes_iso_extractor_new (_data_->_tmp16_);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->extractor = _data_->_tmp17_;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp18_ = _data_->extractor;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp19_ = _data_->cancellable;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_state_ = 2;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_iso_extractor_mount_media (_data_->_tmp18_, _data_->_tmp19_, boxes_fedora_installer_prepare_for_installation_ready, _data_);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 716 "fedora-installer.c"
	_state_2:
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_iso_extractor_mount_media_finish (_data_->_tmp18_, _data_->_res_, &_data_->_inner_error_);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (_data_->extractor);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 732 "fedora-installer.c"
		} else {
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 736 "fedora-installer.c"
		}
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 742 "fedora-installer.c"
	}
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp20_ = _data_->extractor;
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp21_ = _data_->cancellable;
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_state_ = 3;
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_extract_boot_files (_data_->self, _data_->_tmp20_, _data_->_tmp21_, boxes_fedora_installer_prepare_for_installation_ready, _data_);
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 754 "fedora-installer.c"
	_state_3:
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_extract_boot_files_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (_data_->extractor);
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 770 "fedora-installer.c"
		} else {
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 774 "fedora-installer.c"
		}
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 780 "fedora-installer.c"
	}
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->extractor);
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_state_ == 0) {
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 788 "fedora-installer.c"
	} else {
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 792 "fedora-installer.c"
	}
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_unref (_data_->_async_result);
#line 37 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 798 "fedora-installer.c"
}


static void boxes_fedora_installer_real_clean_up (BoxesUnattendedInstaller* base, GError** error) {
	BoxesFedoraInstaller * self;
	GFile* _tmp0_;
	GFile* _tmp2_;
	GError * _inner_error_ = NULL;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self = (BoxesFedoraInstaller*) base;
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	BOXES_UNATTENDED_INSTALLER_CLASS (boxes_fedora_installer_parent_class)->clean_up (G_TYPE_CHECK_INSTANCE_CAST (self, BOXES_TYPE_UNATTENDED_INSTALLER, BoxesUnattendedInstaller), &_inner_error_);
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_inner_error_ != NULL) {
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_propagate_error (error, _inner_error_);
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return;
#line 817 "fedora-installer.c"
	}
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = self->priv->kernel_file;
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp0_ != NULL) {
#line 823 "fedora-installer.c"
		GFile* _tmp1_;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp1_ = self->priv->kernel_file;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		boxes_delete_file (_tmp1_, &_inner_error_);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_ != NULL) {
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_propagate_error (error, _inner_error_);
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return;
#line 835 "fedora-installer.c"
		}
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (self->priv->kernel_file);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		self->priv->kernel_file = NULL;
#line 841 "fedora-installer.c"
	}
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = self->priv->initrd_file;
#line 61 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp2_ != NULL) {
#line 847 "fedora-installer.c"
		GFile* _tmp3_;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp3_ = self->priv->initrd_file;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		boxes_delete_file (_tmp3_, &_inner_error_);
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_ != NULL) {
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_propagate_error (error, _inner_error_);
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return;
#line 859 "fedora-installer.c"
		}
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (self->priv->initrd_file);
#line 63 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		self->priv->initrd_file = NULL;
#line 865 "fedora-installer.c"
	}
}


static gchar* boxes_fedora_installer_real_fill_unattended_data (BoxesUnattendedInstaller* base, const gchar* data, GError** error) {
	BoxesFedoraInstaller * self;
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_ = NULL;
	gchar* str;
	GRegex* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gint _tmp5_;
	gint _tmp6_;
	const gchar* _tmp7_;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_;
	GError * _inner_error_ = NULL;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self = (BoxesFedoraInstaller*) base;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_return_val_if_fail (data != NULL, NULL);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = data;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = BOXES_UNATTENDED_INSTALLER_CLASS (boxes_fedora_installer_parent_class)->fill_unattended_data (G_TYPE_CHECK_INSTANCE_CAST (self, BOXES_TYPE_UNATTENDED_INSTALLER, BoxesUnattendedInstaller), _tmp0_, &_inner_error_);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	str = _tmp1_;
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_inner_error_ != NULL) {
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_->domain == G_REGEX_ERROR) {
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_propagate_error (error, _inner_error_);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return NULL;
#line 903 "fedora-installer.c"
		} else {
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_clear_error (&_inner_error_);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return NULL;
#line 911 "fedora-installer.c"
		}
	}
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = boxes_fedora_installer_kbd_regex;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp3_ = str;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp4_ = str;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp5_ = strlen (_tmp4_);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp6_ = _tmp5_;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp7_ = self->priv->kbd;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp8_ = g_regex_replace (_tmp2_, _tmp3_, (gssize) _tmp6_, 0, _tmp7_, 0, &_inner_error_);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp9_ = _tmp8_;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_inner_error_ != NULL) {
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_->domain == G_REGEX_ERROR) {
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_propagate_error (error, _inner_error_);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			_g_free0 (str);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return NULL;
#line 940 "fedora-installer.c"
		} else {
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			_g_free0 (str);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_clear_error (&_inner_error_);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return NULL;
#line 950 "fedora-installer.c"
		}
	}
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	result = _tmp9_;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (str);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return result;
#line 959 "fedora-installer.c"
}


static void boxes_fedora_installer_extract_boot_files_data_free (gpointer _data) {
	BoxesFedoraInstallerExtractBootFilesData* _data_;
	_data_ = _data;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->extractor);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->cancellable);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->self);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_slice_free (BoxesFedoraInstallerExtractBootFilesData, _data_);
#line 974 "fedora-installer.c"
}


static void boxes_fedora_installer_extract_boot_files (BoxesFedoraInstaller* self, BoxesISOExtractor* extractor, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesFedoraInstallerExtractBootFilesData* _data_;
	BoxesFedoraInstaller* _tmp0_;
	BoxesISOExtractor* _tmp1_;
	BoxesISOExtractor* _tmp2_;
	GCancellable* _tmp3_;
	GCancellable* _tmp4_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = g_slice_new0 (BoxesFedoraInstallerExtractBootFilesData);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_fedora_installer_extract_boot_files);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_fedora_installer_extract_boot_files_data_free);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self = _tmp0_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = extractor;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->extractor);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->extractor = _tmp2_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp3_ = cancellable;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->cancellable);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->cancellable = _tmp4_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_extract_boot_files_co (_data_);
#line 1013 "fedora-installer.c"
}


static void boxes_fedora_installer_extract_boot_files_finish (BoxesFedoraInstaller* self, GAsyncResult* _res_, GError** error) {
	BoxesFedoraInstallerExtractBootFilesData* _data_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return;
#line 1023 "fedora-installer.c"
	}
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1027 "fedora-installer.c"
}


static void boxes_fedora_installer_extract_boot_files_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesFedoraInstallerExtractBootFilesData* _data_;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = _user_data_;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_source_object_ = source_object;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_res_ = _res_;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_extract_boot_files_co (_data_);
#line 1041 "fedora-installer.c"
}


static gboolean boxes_fedora_installer_extract_boot_files_co (BoxesFedoraInstallerExtractBootFilesData* _data_) {
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	switch (_data_->_state_) {
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 0:
#line 1050 "fedora-installer.c"
		goto _state_0;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 1:
#line 1054 "fedora-installer.c"
		goto _state_1;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 2:
#line 1058 "fedora-installer.c"
		goto _state_2;
		default:
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_assert_not_reached ();
#line 1063 "fedora-installer.c"
	}
	_state_0:
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp0_ = _data_->extractor;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp1_ = ((BoxesInstallerMedia*) _data_->self)->os_media;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp2_ = NULL;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_get (_data_->_tmp1_, "kernel-path", &_data_->_tmp2_, NULL);
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp5_ = NULL;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp5_ = boxes_iso_extractor_get_absolute_path (_data_->_tmp0_, _data_->_tmp4_, &_data_->_inner_error_);
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->_tmp4_);
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->src_path = _data_->_tmp6_;
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1098 "fedora-installer.c"
		} else {
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1102 "fedora-installer.c"
		}
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 74 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1108 "fedora-installer.c"
	}
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp7_ = NULL;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp7_ = boxes_unattended_installer_get_user_unattended ((BoxesUnattendedInstaller*) _data_->self, "kernel");
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->dest_path = _data_->_tmp7_;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp8_ = _data_->src_path;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp9_ = _data_->dest_path;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp10_ = _data_->cancellable;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_state_ = 1;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_copy_file (_data_->self, _data_->_tmp8_, _data_->_tmp9_, _data_->_tmp10_, boxes_fedora_installer_extract_boot_files_ready, _data_);
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 1128 "fedora-installer.c"
	_state_1:
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp11_ = NULL;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp11_ = boxes_fedora_installer_copy_file_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp12_ = _data_->_tmp11_;
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (_data_->dest_path);
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (_data_->src_path);
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1150 "fedora-installer.c"
		} else {
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1154 "fedora-installer.c"
		}
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1160 "fedora-installer.c"
	}
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->self->priv->kernel_file);
#line 76 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->kernel_file = _data_->_tmp12_;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp13_ = _data_->extractor;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp14_ = ((BoxesInstallerMedia*) _data_->self)->os_media;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp15_ = NULL;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_get (_data_->_tmp14_, "initrd-path", &_data_->_tmp15_, NULL);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp16_ = _data_->_tmp15_;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp17_ = _data_->_tmp16_;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp18_ = NULL;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp18_ = boxes_iso_extractor_get_absolute_path (_data_->_tmp13_, _data_->_tmp17_, &_data_->_inner_error_);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp19_ = _data_->_tmp18_;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->_tmp17_);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp20_ = _data_->_tmp19_;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (_data_->dest_path);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (_data_->src_path);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1202 "fedora-installer.c"
		} else {
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1206 "fedora-installer.c"
		}
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1212 "fedora-installer.c"
	}
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->src_path);
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->src_path = _data_->_tmp20_;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp21_ = NULL;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp21_ = boxes_unattended_installer_get_user_unattended ((BoxesUnattendedInstaller*) _data_->self, "initrd");
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->dest_path);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->dest_path = _data_->_tmp21_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp22_ = _data_->src_path;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp23_ = _data_->dest_path;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp24_ = _data_->cancellable;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_state_ = 2;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_copy_file (_data_->self, _data_->_tmp22_, _data_->_tmp23_, _data_->_tmp24_, boxes_fedora_installer_extract_boot_files_ready, _data_);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 1238 "fedora-installer.c"
	_state_2:
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp25_ = NULL;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp25_ = boxes_fedora_installer_copy_file_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp26_ = _data_->_tmp25_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (_data_->dest_path);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (_data_->src_path);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1260 "fedora-installer.c"
		} else {
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1264 "fedora-installer.c"
		}
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1270 "fedora-installer.c"
	}
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->self->priv->initrd_file);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->initrd_file = _data_->_tmp26_;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->dest_path);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->src_path);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_state_ == 0) {
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1284 "fedora-installer.c"
	} else {
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1288 "fedora-installer.c"
	}
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_unref (_data_->_async_result);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 1294 "fedora-installer.c"
}


static void boxes_fedora_installer_copy_file_data_free (gpointer _data) {
	BoxesFedoraInstallerCopyFileData* _data_;
	_data_ = _data;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->src_path);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->dest_path);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->cancellable);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->result);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->self);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_slice_free (BoxesFedoraInstallerCopyFileData, _data_);
#line 1313 "fedora-installer.c"
}


static void boxes_fedora_installer_copy_file (BoxesFedoraInstaller* self, const gchar* src_path, const gchar* dest_path, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesFedoraInstallerCopyFileData* _data_;
	BoxesFedoraInstaller* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	GCancellable* _tmp5_;
	GCancellable* _tmp6_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = g_slice_new0 (BoxesFedoraInstallerCopyFileData);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_fedora_installer_copy_file);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_fedora_installer_copy_file_data_free);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self = _tmp0_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = src_path;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->src_path);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->src_path = _tmp2_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp3_ = dest_path;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->dest_path);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->dest_path = _tmp4_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp5_ = cancellable;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp6_ = _g_object_ref0 (_tmp5_);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->cancellable);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->cancellable = _tmp6_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_copy_file_co (_data_);
#line 1362 "fedora-installer.c"
}


static GFile* boxes_fedora_installer_copy_file_finish (BoxesFedoraInstaller* self, GAsyncResult* _res_, GError** error) {
	GFile* result;
	BoxesFedoraInstallerCopyFileData* _data_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return NULL;
#line 1373 "fedora-installer.c"
	}
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	result = _data_->result;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->result = NULL;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return result;
#line 1383 "fedora-installer.c"
}


static void boxes_fedora_installer_copy_file_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesFedoraInstallerCopyFileData* _data_;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = _user_data_;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_source_object_ = source_object;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_res_ = _res_;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_copy_file_co (_data_);
#line 1397 "fedora-installer.c"
}


static gboolean boxes_fedora_installer_copy_file_co (BoxesFedoraInstallerCopyFileData* _data_) {
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	switch (_data_->_state_) {
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 0:
#line 1406 "fedora-installer.c"
		goto _state_0;
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 1:
#line 1410 "fedora-installer.c"
		goto _state_1;
		default:
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_assert_not_reached ();
#line 1415 "fedora-installer.c"
	}
	_state_0:
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp0_ = _data_->src_path;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp1_ = NULL;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp1_ = g_file_new_for_path (_data_->_tmp0_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->src_file = _data_->_tmp1_;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp2_ = _data_->dest_path;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp3_ = NULL;
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp3_ = g_file_new_for_path (_data_->_tmp2_);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->dest_file = _data_->_tmp3_;
#line 1434 "fedora-installer.c"
	{
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp4_ = _data_->src_path;
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp5_ = _data_->dest_path;
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_debug ("fedora-installer.vala:88: Copying '%s' to '%s'..", _data_->_tmp4_, _data_->_tmp5_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp6_ = _data_->cancellable;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_state_ = 1;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_file_copy_async (_data_->src_file, _data_->dest_file, 0, G_PRIORITY_DEFAULT, _data_->_tmp6_, NULL, NULL, boxes_fedora_installer_copy_file_ready, _data_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1450 "fedora-installer.c"
		_state_1:
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_file_copy_finish (_data_->src_file, _data_->_res_, &_data_->_inner_error_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_inner_error_ != NULL) {
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_EXISTS)) {
#line 1458 "fedora-installer.c"
				goto __catch9_g_io_error_exists;
			}
			goto __finally9;
		}
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp7_ = _data_->src_path;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp8_ = _data_->dest_path;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_debug ("fedora-installer.vala:90: Copied '%s' to '%s'.", _data_->_tmp7_, _data_->_tmp8_);
#line 1469 "fedora-installer.c"
	}
	goto __finally9;
	__catch9_g_io_error_exists:
	{
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_inner_error_ = NULL;
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_error_free0 (_data_->_error_);
#line 1480 "fedora-installer.c"
	}
	__finally9:
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (_data_->dest_file);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (_data_->src_file);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1497 "fedora-installer.c"
		} else {
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1501 "fedora-installer.c"
		}
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 87 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1507 "fedora-installer.c"
	}
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->result = _data_->dest_file;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->src_file);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_state_ == 0) {
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1517 "fedora-installer.c"
	} else {
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1521 "fedora-installer.c"
	}
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_unref (_data_->_async_result);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->dest_file);
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->src_file);
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_state_ == 0) {
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1535 "fedora-installer.c"
	} else {
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1539 "fedora-installer.c"
	}
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_unref (_data_->_async_result);
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 1545 "fedora-installer.c"
}


static gchar** _vala_array_dup1 (gchar** self, int length) {
	gchar** result;
	int i;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	result = g_new0 (gchar*, length + 1);
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	for (i = 0; i < length; i++) {
#line 1556 "fedora-installer.c"
		gchar* _tmp0_;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp0_ = g_strdup (self[i]);
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		result[i] = _tmp0_;
#line 1562 "fedora-installer.c"
	}
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return result;
#line 1566 "fedora-installer.c"
}


static gchar* boxes_fedora_installer_fetch_console_kbd_layout (BoxesFedoraInstaller* self) {
	gchar* result = NULL;
	gchar* method;
	gchar* layout_str;
	gchar** _tmp0_;
	gchar** _tmp1_ = NULL;
	gchar** _tmp2_;
	gint _tmp2__length1;
	gchar** schemas;
	gint schemas_length1;
	gint _schemas_size_;
	gchar** _tmp3_;
	gint _tmp3__length1;
	gboolean _tmp19_ = FALSE;
	const gchar* _tmp20_;
	gboolean _tmp22_;
	const gchar* _tmp24_;
	gchar** _tmp25_;
	gchar** _tmp26_ = NULL;
	gchar** tokens;
	gint tokens_length1;
	gint _tokens_size_;
	gchar** _tmp27_;
	gint _tmp27__length1;
	const gchar* _tmp28_;
	gchar* _tmp29_;
	gchar* xkb_layout;
	gchar** _tmp30_;
	gint _tmp30__length1;
	const gchar* _tmp31_;
	gchar* _tmp32_;
	gchar* xkb_variant;
	gchar* _tmp33_;
	gchar* console_layout;
	const gchar* _tmp57_;
	const gchar* _tmp60_;
#line 102 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	method = NULL;
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	layout_str = NULL;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = _tmp0_ = g_settings_list_schemas ();
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = (_tmp1_ != NULL) ? _vala_array_dup1 (_tmp1_, _vala_array_length (_tmp0_)) : ((gpointer) _tmp1_);
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2__length1 = _vala_array_length (_tmp0_);
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	schemas = _tmp2_;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	schemas_length1 = _tmp2__length1;
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_schemas_size_ = schemas_length1;
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp3_ = schemas;
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp3__length1 = schemas_length1;
#line 1628 "fedora-installer.c"
	{
		gchar** s_collection = NULL;
		gint s_collection_length1 = 0;
		gint _s_collection_size_ = 0;
		gint s_it = 0;
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		s_collection = _tmp3_;
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		s_collection_length1 = _tmp3__length1;
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		for (s_it = 0; s_it < _tmp3__length1; s_it = s_it + 1) {
#line 1640 "fedora-installer.c"
			gchar* _tmp4_;
			gchar* s = NULL;
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			_tmp4_ = g_strdup (s_collection[s_it]);
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			s = _tmp4_;
#line 1647 "fedora-installer.c"
			{
				const gchar* _tmp5_;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp5_ = s;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				if (g_strcmp0 (_tmp5_, "org.gnome.desktop.input-sources") == 0) {
#line 1654 "fedora-installer.c"
					const gchar* _tmp6_;
					GSettings* _tmp7_;
					GSettings* settings;
					GSettings* _tmp8_;
					GVariant* _tmp9_ = NULL;
					GVariant* sources;
					GSettings* _tmp10_;
					guint _tmp11_ = 0U;
					guint current;
					guint _tmp12_;
					GVariant* _tmp13_;
					gsize _tmp14_ = 0UL;
					GVariant* _tmp15_;
					gsize _tmp16_ = 0UL;
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp6_ = s;
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp7_ = g_settings_new (_tmp6_);
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					settings = _tmp7_;
#line 111 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp8_ = settings;
#line 111 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp9_ = g_settings_get_value (_tmp8_, "sources");
#line 111 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					sources = _tmp9_;
#line 112 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp10_ = settings;
#line 112 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp11_ = g_settings_get_uint (_tmp10_, "current");
#line 112 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					current = _tmp11_;
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp12_ = current;
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp13_ = sources;
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp14_ = g_variant_n_children (_tmp13_);
#line 113 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					if (((gsize) _tmp12_) > _tmp14_) {
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						current = (guint) 0;
#line 1697 "fedora-installer.c"
					}
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp15_ = sources;
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp16_ = g_variant_n_children (_tmp15_);
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					if (_tmp16_ > ((gsize) 0)) {
#line 1705 "fedora-installer.c"
						GVariant* _tmp17_;
						guint _tmp18_;
#line 117 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp17_ = sources;
#line 117 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp18_ = current;
#line 117 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						g_variant_get_child (_tmp17_, (gsize) _tmp18_, "(ss)", &method, &layout_str, NULL);
#line 1714 "fedora-installer.c"
					}
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_g_variant_unref0 (sources);
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_g_object_unref0 (settings);
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_g_free0 (s);
#line 118 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					break;
#line 1724 "fedora-installer.c"
				}
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_g_free0 (s);
#line 1728 "fedora-installer.c"
			}
		}
	}
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp20_ = method;
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (g_strcmp0 (_tmp20_, "xkb") != 0) {
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp19_ = TRUE;
#line 1738 "fedora-installer.c"
	} else {
		const gchar* _tmp21_;
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp21_ = layout_str;
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp19_ = _tmp21_ == NULL;
#line 1745 "fedora-installer.c"
	}
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp22_ = _tmp19_;
#line 122 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp22_) {
#line 1751 "fedora-installer.c"
		gchar* _tmp23_;
#line 123 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_warning ("fedora-installer.vala:123: Failed to fetch prefered keyboard layout fr" \
"om user settings, falling back to 'us'..");
#line 125 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp23_ = g_strdup ("us");
#line 125 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		result = _tmp23_;
#line 125 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		schemas = (_vala_array_free (schemas, schemas_length1, (GDestroyNotify) g_free), NULL);
#line 125 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (layout_str);
#line 125 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (method);
#line 125 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return result;
#line 1767 "fedora-installer.c"
	}
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp24_ = layout_str;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp26_ = _tmp25_ = g_strsplit (_tmp24_, "+", 0);
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	tokens = _tmp26_;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	tokens_length1 = _vala_array_length (_tmp25_);
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tokens_size_ = tokens_length1;
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp27_ = tokens;
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp27__length1 = tokens_length1;
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp28_ = _tmp27_[0];
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp29_ = g_strdup (_tmp28_);
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	xkb_layout = _tmp29_;
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp30_ = tokens;
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp30__length1 = tokens_length1;
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp31_ = _tmp30_[1];
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp32_ = g_strdup (_tmp31_);
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	xkb_variant = _tmp32_;
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp33_ = g_strdup ((const gchar*) NULL);
#line 130 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	console_layout = _tmp33_;
#line 1803 "fedora-installer.c"
	{
		gint i;
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		i = 0;
#line 1808 "fedora-installer.c"
		{
			gboolean _tmp34_;
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			_tmp34_ = TRUE;
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			while (TRUE) {
#line 1815 "fedora-installer.c"
				gboolean _tmp35_;
				gint _tmp37_;
				const gchar* _tmp38_;
				gint _tmp39_;
				BoxesFedoraInstallerKbdLayout _tmp40_;
				const gchar* _tmp41_;
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp35_ = _tmp34_;
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				if (!_tmp35_) {
#line 1826 "fedora-installer.c"
					gint _tmp36_;
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp36_ = i;
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					i = _tmp36_ + 1;
#line 1832 "fedora-installer.c"
				}
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp34_ = FALSE;
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp37_ = i;
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				if (!(_tmp37_ < G_N_ELEMENTS (BOXES_FEDORA_INSTALLER_kbd_layouts))) {
#line 132 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					break;
#line 1842 "fedora-installer.c"
				}
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp38_ = xkb_layout;
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp39_ = i;
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp40_ = BOXES_FEDORA_INSTALLER_kbd_layouts[_tmp39_];
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp41_ = _tmp40_.xkb_layout;
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				if (g_strcmp0 (_tmp38_, _tmp41_) == 0) {
#line 1854 "fedora-installer.c"
					const gchar* _tmp42_;
					gint _tmp43_;
					BoxesFedoraInstallerKbdLayout _tmp44_;
					const gchar* _tmp45_;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp42_ = xkb_variant;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp43_ = i;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp44_ = BOXES_FEDORA_INSTALLER_kbd_layouts[_tmp43_];
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp45_ = _tmp44_.xkb_variant;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					if (g_strcmp0 (_tmp42_, _tmp45_) == 0) {
#line 1869 "fedora-installer.c"
						gint _tmp46_;
						BoxesFedoraInstallerKbdLayout _tmp47_;
						const gchar* _tmp48_;
						gchar* _tmp49_;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp46_ = i;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp47_ = BOXES_FEDORA_INSTALLER_kbd_layouts[_tmp46_];
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp48_ = _tmp47_.console_layout;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp49_ = g_strdup (_tmp48_);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_g_free0 (console_layout);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						console_layout = _tmp49_;
#line 138 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						break;
#line 1888 "fedora-installer.c"
					} else {
						gint _tmp50_;
						BoxesFedoraInstallerKbdLayout _tmp51_;
						const gchar* _tmp52_;
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp50_ = i;
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp51_ = BOXES_FEDORA_INSTALLER_kbd_layouts[_tmp50_];
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp52_ = _tmp51_.xkb_variant;
#line 139 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						if (_tmp52_ == NULL) {
#line 1901 "fedora-installer.c"
							gint _tmp53_;
							BoxesFedoraInstallerKbdLayout _tmp54_;
							const gchar* _tmp55_;
							gchar* _tmp56_;
#line 140 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
							_tmp53_ = i;
#line 140 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
							_tmp54_ = BOXES_FEDORA_INSTALLER_kbd_layouts[_tmp53_];
#line 140 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
							_tmp55_ = _tmp54_.console_layout;
#line 140 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
							_tmp56_ = g_strdup (_tmp55_);
#line 140 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
							_g_free0 (console_layout);
#line 140 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
							console_layout = _tmp56_;
#line 1918 "fedora-installer.c"
						}
					}
				}
			}
		}
	}
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp57_ = console_layout;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp57_ == NULL) {
#line 1929 "fedora-installer.c"
		const gchar* _tmp58_;
		gchar* _tmp59_;
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp58_ = layout_str;
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_debug ("fedora-installer.vala:143: Couldn't find a console layout for X layout" \
" '%s', falling back to 'us'..", _tmp58_);
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp59_ = g_strdup ("us");
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (console_layout);
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		console_layout = _tmp59_;
#line 1942 "fedora-installer.c"
	}
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp60_ = console_layout;
#line 146 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_debug ("fedora-installer.vala:146: Using '%s' keyboard layout.", _tmp60_);
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	result = console_layout;
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (xkb_variant);
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (xkb_layout);
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	tokens = (_vala_array_free (tokens, tokens_length1, (GDestroyNotify) g_free), NULL);
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	schemas = (_vala_array_free (schemas, schemas_length1, (GDestroyNotify) g_free), NULL);
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (layout_str);
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (method);
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return result;
#line 1964 "fedora-installer.c"
}


BoxesFedoraInstaller* boxes_fedora_installer_construct (GType object_type) {
	BoxesFedoraInstaller * self = NULL;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self = (BoxesFedoraInstaller*) boxes_unattended_installer_construct (object_type);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return self;
#line 1974 "fedora-installer.c"
}


BoxesFedoraInstaller* boxes_fedora_installer_new (void) {
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return boxes_fedora_installer_construct (BOXES_TYPE_FEDORA_INSTALLER);
#line 1981 "fedora-installer.c"
}


static void boxes_fedora_installer_kbd_layout_copy (const BoxesFedoraInstallerKbdLayout* self, BoxesFedoraInstallerKbdLayout* dest) {
	const gchar* _tmp0_;
	gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = (*self).xkb_layout;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 ((*dest).xkb_layout);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	(*dest).xkb_layout = _tmp1_;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = (*self).xkb_variant;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 ((*dest).xkb_variant);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	(*dest).xkb_variant = _tmp3_;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp4_ = (*self).console_layout;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp5_ = g_strdup (_tmp4_);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 ((*dest).console_layout);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	(*dest).console_layout = _tmp5_;
#line 2016 "fedora-installer.c"
}


static void boxes_fedora_installer_kbd_layout_destroy (BoxesFedoraInstallerKbdLayout* self) {
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 ((*self).xkb_layout);
#line 98 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 ((*self).xkb_variant);
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 ((*self).console_layout);
#line 2027 "fedora-installer.c"
}


static BoxesFedoraInstallerKbdLayout* boxes_fedora_installer_kbd_layout_dup (const BoxesFedoraInstallerKbdLayout* self) {
	BoxesFedoraInstallerKbdLayout* dup;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	dup = g_new0 (BoxesFedoraInstallerKbdLayout, 1);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_kbd_layout_copy (self, dup);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return dup;
#line 2039 "fedora-installer.c"
}


static void boxes_fedora_installer_kbd_layout_free (BoxesFedoraInstallerKbdLayout* self) {
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_kbd_layout_destroy (self);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_free (self);
#line 2048 "fedora-installer.c"
}


static GType boxes_fedora_installer_kbd_layout_get_type (void) {
	static volatile gsize boxes_fedora_installer_kbd_layout_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_fedora_installer_kbd_layout_type_id__volatile)) {
		GType boxes_fedora_installer_kbd_layout_type_id;
		boxes_fedora_installer_kbd_layout_type_id = g_boxed_type_register_static ("BoxesFedoraInstallerKbdLayout", (GBoxedCopyFunc) boxes_fedora_installer_kbd_layout_dup, (GBoxedFreeFunc) boxes_fedora_installer_kbd_layout_free);
		g_once_init_leave (&boxes_fedora_installer_kbd_layout_type_id__volatile, boxes_fedora_installer_kbd_layout_type_id);
	}
	return boxes_fedora_installer_kbd_layout_type_id__volatile;
}


static void boxes_fedora_installer_class_init (BoxesFedoraInstallerClass * klass) {
	GError * _inner_error_ = NULL;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_parent_class = g_type_class_peek_parent (klass);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_type_class_add_private (klass, sizeof (BoxesFedoraInstallerPrivate));
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->set_direct_boot_params = boxes_fedora_installer_real_set_direct_boot_params;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->prepare_for_installation = boxes_fedora_installer_real_prepare_for_installation;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	BOXES_INSTALLER_MEDIA_CLASS (klass)->prepare_for_installation_finish = boxes_fedora_installer_real_prepare_for_installation_finish;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	BOXES_UNATTENDED_INSTALLER_CLASS (klass)->clean_up = boxes_fedora_installer_real_clean_up;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	BOXES_UNATTENDED_INSTALLER_CLASS (klass)->fill_unattended_data = boxes_fedora_installer_real_fill_unattended_data;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_fedora_installer_finalize;
#line 2081 "fedora-installer.c"
	{
		GRegex* _tmp0_;
		GRegex* _tmp1_;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp0_ = g_regex_new ("BOXES_FEDORA_KBD", 0, 0, &_inner_error_);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp1_ = _tmp0_;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_ != NULL) {
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 2093 "fedora-installer.c"
				goto __catch10_g_regex_error;
			}
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_clear_error (&_inner_error_);
#line 2100 "fedora-installer.c"
		}
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_regex_unref0 (boxes_fedora_installer_kbd_regex);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		boxes_fedora_installer_kbd_regex = _tmp1_;
#line 2106 "fedora-installer.c"
	}
	goto __finally10;
	__catch10_g_regex_error:
	{
		GError* _error_ = NULL;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_error_ = _inner_error_;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_inner_error_ = NULL;
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_assert_not_reached ();
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_error_free0 (_error_);
#line 2120 "fedora-installer.c"
	}
	__finally10:
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_inner_error_ != NULL) {
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_clear_error (&_inner_error_);
#line 2129 "fedora-installer.c"
	}
}


static void boxes_fedora_installer_instance_init (BoxesFedoraInstaller * self) {
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self->priv = BOXES_FEDORA_INSTALLER_GET_PRIVATE (self);
#line 2137 "fedora-installer.c"
}


static void boxes_fedora_installer_finalize (GObject* obj) {
	BoxesFedoraInstaller * self;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_FEDORA_INSTALLER, BoxesFedoraInstaller);
#line 4 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (self->priv->kernel_file);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (self->priv->initrd_file);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (self->priv->kbd);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	G_OBJECT_CLASS (boxes_fedora_installer_parent_class)->finalize (obj);
#line 2153 "fedora-installer.c"
}


GType boxes_fedora_installer_get_type (void) {
	static volatile gsize boxes_fedora_installer_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_fedora_installer_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesFedoraInstallerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_fedora_installer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesFedoraInstaller), 0, (GInstanceInitFunc) boxes_fedora_installer_instance_init, NULL };
		GType boxes_fedora_installer_type_id;
		boxes_fedora_installer_type_id = g_type_register_static (BOXES_TYPE_UNATTENDED_INSTALLER, "BoxesFedoraInstaller", &g_define_type_info, 0);
		g_once_init_leave (&boxes_fedora_installer_type_id__volatile, boxes_fedora_installer_type_id);
	}
	return boxes_fedora_installer_type_id__volatile;
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



