/* fedora-installer.c generated by valac 0.17.3.12-6a5ea3, 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 <osinfo/osinfo.h>
#include <glib/gi18n-lib.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_PAIR (boxes_pair_get_type ())
#define BOXES_PAIR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PAIR, BoxesPair))
#define BOXES_PAIR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PAIR, BoxesPairClass))
#define BOXES_IS_PAIR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PAIR))
#define BOXES_IS_PAIR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PAIR))
#define BOXES_PAIR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PAIR, BoxesPairClass))

typedef struct _BoxesPair BoxesPair;
typedef struct _BoxesPairClass BoxesPairClass;

#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 _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _BoxesFedoraInstallerPrepareDirectBootData BoxesFedoraInstallerPrepareDirectBootData;
typedef struct _BoxesFedoraInstallerNormalCleanUpData BoxesFedoraInstallerNormalCleanUpData;
typedef struct _BoxesFedoraInstallerMountMediaData BoxesFedoraInstallerMountMediaData;
typedef struct _BoxesFedoraInstallerExtractBootFilesData BoxesFedoraInstallerExtractBootFilesData;
typedef struct _BoxesFedoraInstallerCopyFileData BoxesFedoraInstallerCopyFileData;
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))

typedef enum  {
	UNATTENDED_INSTALLER_ERROR_SETUP_INCOMPLETE
} UnattendedInstallerError;
#define UNATTENDED_INSTALLER_ERROR unattended_installer_error_quark ()
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 (*setup_spice_config) (BoxesInstallerMedia* self, GVirConfigDomainGraphicsSpice* graphics);
	void (*populate_setup_vbox) (BoxesInstallerMedia* self, GtkVBox* setup_vbox);
	void (*check_needed_info) (BoxesInstallerMedia* self, GError** error);
	GList* (*get_vm_properties) (BoxesInstallerMedia* self);
	gboolean (*get_need_user_input_for_vm_creation) (BoxesInstallerMedia* self);
};

struct _BoxesUnattendedFileIface {
	GTypeInterface parent_iface;
	void (*create) (BoxesUnattendedFile* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GFile* (*create_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;
	gboolean password_mandatory;
	GList* unattended_files;
	GtkTable* setup_table;
	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);
	void (*prepare_direct_boot) (BoxesUnattendedInstaller* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*prepare_direct_boot_finish) (BoxesUnattendedInstaller* self, GAsyncResult* _res_, GError** error);
	GVirConfigDomainDisk* (*get_unattended_disk_config) (BoxesUnattendedInstaller* self);
};

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

struct _BoxesFedoraInstallerClass {
	BoxesUnattendedInstallerClass parent_class;
};

struct _BoxesFedoraInstallerPrivate {
	gboolean mounted;
	GFile* source_dir;
	GFile* kernel_file;
	GFile* initrd_file;
	gchar* kernel_path;
	gchar* initrd_path;
	gchar* kbd;
};

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

struct _BoxesFedoraInstallerPrepareDirectBootData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesFedoraInstaller* self;
	GCancellable* cancellable;
	GtkSwitch* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	OsinfoMedia* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gboolean _tmp8_;
	OsinfoMedia* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	gboolean _tmp13_;
	GCancellable* _tmp14_;
	GCancellable* _tmp15_;
	GCancellable* _tmp16_;
	GError * _inner_error_;
};

struct _BoxesFedoraInstallerNormalCleanUpData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesFedoraInstaller* self;
	GCancellable* cancellable;
	gboolean _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	gchar** _tmp6_;
	gchar** argv;
	gint argv_length1;
	gint _argv_size_;
	gchar** _tmp7_;
	gint _tmp7__length1;
	GCancellable* _tmp8_;
	const gchar* _tmp9_;
	GFile* _tmp10_;
	const gchar* _tmp11_;
	GError * _inner_error_;
};

struct _BoxesFedoraInstallerMountMediaData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesFedoraInstaller* self;
	GCancellable* cancellable;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	GFile* _tmp2_;
	gchar* _tmp3_;
	const gchar* _tmp4_;
	GFile* _tmp5_;
	GFile* dir;
	GFile* _tmp6_;
	GError* _error_;
	GFile* _tmp7_;
	GFile* _tmp8_;
	const gchar* _tmp9_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	const gchar* _tmp12_;
	gchar* _tmp13_;
	const gchar* _tmp14_;
	gchar* _tmp15_;
	gchar** _tmp16_;
	gchar** argv;
	gint argv_length1;
	gint _argv_size_;
	gchar** _tmp17_;
	gint _tmp17__length1;
	GCancellable* _tmp18_;
	const gchar* _tmp19_;
	const gchar* _tmp20_;
	GError * _inner_error_;
};

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

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


static gpointer boxes_fedora_installer_parent_class = NULL;
static GRegex* boxes_fedora_installer_repo_regex;
static GRegex* boxes_fedora_installer_repo_regex = 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;
GQuark unattended_installer_error_quark (void);
gpointer boxes_pair_ref (gpointer instance);
void boxes_pair_unref (gpointer instance);
GParamSpec* boxes_param_spec_pair (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void boxes_value_set_pair (GValue* value, gpointer v_object);
void boxes_value_take_pair (GValue* value, gpointer v_object);
gpointer boxes_value_get_pair (const GValue* value);
GType boxes_pair_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);
gchar* boxes_get_unattended (const gchar* file_name);
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_check_needed_info (BoxesInstallerMedia* base, GError** error);
void boxes_installer_media_check_needed_info (BoxesInstallerMedia* self, GError** error);
static gboolean boxes_fedora_installer_get_use_remote_repos (BoxesFedoraInstaller* self);
static void boxes_fedora_installer_real_prepare_direct_boot_data_free (gpointer _data);
static void boxes_fedora_installer_real_prepare_direct_boot (BoxesUnattendedInstaller* base, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_fedora_installer_real_prepare_direct_boot_co (BoxesFedoraInstallerPrepareDirectBootData* _data_);
static void boxes_fedora_installer_mount_media (BoxesFedoraInstaller* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_fedora_installer_mount_media_finish (BoxesFedoraInstaller* self, GAsyncResult* _res_, GError** error);
static void boxes_fedora_installer_prepare_direct_boot_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void boxes_fedora_installer_extract_boot_files (BoxesFedoraInstaller* self, 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_normal_clean_up (BoxesFedoraInstaller* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_fedora_installer_normal_clean_up_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);
void boxes_delete_file (GFile* file, 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_normal_clean_up_data_free (gpointer _data);
static gboolean boxes_fedora_installer_normal_clean_up_co (BoxesFedoraInstallerNormalCleanUpData* _data_);
void boxes_exec (gchar** argv, int argv_length1, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_exec_finish (GAsyncResult* _res_, GError** error);
static void boxes_fedora_installer_normal_clean_up_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void boxes_fedora_installer_mount_media_data_free (gpointer _data);
static gboolean boxes_fedora_installer_mount_media_co (BoxesFedoraInstallerMountMediaData* _data_);
gchar* boxes_unattended_installer_get_user_unattended (BoxesUnattendedInstaller* self, const gchar* suffix);
static void boxes_fedora_installer_mount_media_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void boxes_fedora_installer_extract_boot_files_data_free (gpointer _data);
static gboolean boxes_fedora_installer_extract_boot_files_co (BoxesFedoraInstallerExtractBootFilesData* _data_);
static void boxes_fedora_installer_copy_file (BoxesFedoraInstaller* self, GFile* file, 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_);
BoxesFedoraInstaller* boxes_fedora_installer_new (void);
BoxesFedoraInstaller* boxes_fedora_installer_construct (GType object_type);
BoxesUnattendedInstaller* boxes_unattended_installer_construct (GType object_type);
gboolean boxes_unattended_installer_get_express_install (BoxesUnattendedInstaller* self);
static void boxes_fedora_installer_finalize (GObject* obj);
static void _vala_boxes_fedora_installer_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
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 32 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_return_val_if_fail (media != NULL, NULL);
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = boxes_get_unattended ("fedora.ks");
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	source_path = _tmp0_;
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = media;
#line 35 "/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 35 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_inner_error_ != NULL) {
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_propagate_error (error, _inner_error_);
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (source_path);
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (self);
#line 35 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return NULL;
#line 457 "fedora-installer.c"
	}
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	((BoxesUnattendedInstaller*) self)->password_mandatory = TRUE;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = boxes_fedora_installer_fetch_console_kbd_layout (self);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (self->priv->kbd);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self->priv->kbd = _tmp2_;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (source_path);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return self;
#line 471 "fedora-installer.c"
}


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


static void boxes_fedora_installer_real_set_direct_boot_params (BoxesInstallerMedia* base, GVirConfigDomainOs* os) {
	BoxesFedoraInstaller * self;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_;
	gboolean _tmp3_;
	GVirConfigDomainOs* _tmp4_;
	const gchar* _tmp5_;
	GVirConfigDomainOs* _tmp6_;
	const gchar* _tmp7_;
	GVirConfigDomainOs* _tmp8_;
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self = (BoxesFedoraInstaller*) base;
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_return_if_fail (os != NULL);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = self->priv->kernel_path;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp1_ == NULL) {
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp0_ = TRUE;
#line 502 "fedora-installer.c"
	} else {
		const gchar* _tmp2_;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp2_ = self->priv->initrd_path;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp0_ = _tmp2_ == NULL;
#line 509 "fedora-installer.c"
	}
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp3_ = _tmp0_;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp3_) {
#line 43 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return;
#line 517 "fedora-installer.c"
	}
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp4_ = os;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp5_ = self->priv->kernel_path;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	gvir_config_domain_os_set_kernel (_tmp4_, _tmp5_);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp6_ = os;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp7_ = self->priv->initrd_path;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	gvir_config_domain_os_set_ramdisk (_tmp6_, _tmp7_);
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp8_ = os;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	gvir_config_domain_os_set_cmdline (_tmp8_, "ks=hd:sda:/ks.cfg");
#line 535 "fedora-installer.c"
}


static void boxes_fedora_installer_real_check_needed_info (BoxesInstallerMedia* base, GError** error) {
	BoxesFedoraInstaller * self;
	gboolean _tmp0_;
	gboolean _tmp1_;
	GError * _inner_error_ = NULL;
#line 50 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self = (BoxesFedoraInstaller*) base;
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	BOXES_INSTALLER_MEDIA_CLASS (boxes_fedora_installer_parent_class)->check_needed_info ((BoxesInstallerMedia*) G_TYPE_CHECK_INSTANCE_CAST (self, BOXES_TYPE_UNATTENDED_INSTALLER, BoxesUnattendedInstaller), &_inner_error_);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_inner_error_ != NULL) {
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_->domain == UNATTENDED_INSTALLER_ERROR) {
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_propagate_error (error, _inner_error_);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return;
#line 556 "fedora-installer.c"
		} else {
#line 51 "/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 51 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_clear_error (&_inner_error_);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return;
#line 564 "fedora-installer.c"
		}
	}
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = boxes_fedora_installer_get_use_remote_repos (self);
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = _tmp0_;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (!_tmp1_) {
#line 54 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return;
#line 575 "fedora-installer.c"
	}
	{
		GSocketClient* _tmp2_;
		GSocketClient* client;
		GSocketClient* _tmp3_;
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp2_ = g_socket_client_new ();
#line 57 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		client = _tmp2_;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp3_ = client;
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_socket_client_connect_to_host (_tmp3_, "fedoraproject.org", (guint16) 80, NULL, &_inner_error_);
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_ != NULL) {
#line 58 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			_g_object_unref0 (client);
#line 593 "fedora-installer.c"
			goto __catch11_g_error;
		}
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (client);
#line 598 "fedora-installer.c"
	}
	goto __finally11;
	__catch11_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp4_ = NULL;
		gchar* _tmp5_;
		gchar* message;
		const gchar* _tmp6_;
		GError* _tmp7_;
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_error_ = _inner_error_;
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_inner_error_ = NULL;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp4_ = _ ("Internet access required for express installation of Fedora 16 and old" \
"er");
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp5_ = g_strdup (_tmp4_);
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		message = _tmp5_;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp6_ = message;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp7_ = g_error_new_literal (UNATTENDED_INSTALLER_ERROR, UNATTENDED_INSTALLER_ERROR_SETUP_INCOMPLETE, _tmp6_);
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_inner_error_ = _tmp7_;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (message);
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_error_free0 (_error_);
#line 629 "fedora-installer.c"
		goto __finally11;
	}
	__finally11:
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_inner_error_ != NULL) {
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_->domain == UNATTENDED_INSTALLER_ERROR) {
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_propagate_error (error, _inner_error_);
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return;
#line 641 "fedora-installer.c"
		} else {
#line 56 "/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 56 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_clear_error (&_inner_error_);
#line 56 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return;
#line 649 "fedora-installer.c"
		}
	}
}


static void boxes_fedora_installer_real_prepare_direct_boot_data_free (gpointer _data) {
	BoxesFedoraInstallerPrepareDirectBootData* _data_;
	_data_ = _data;
#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 (BoxesFedoraInstallerPrepareDirectBootData, _data_);
#line 664 "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 671 "fedora-installer.c"
}


static void boxes_fedora_installer_real_prepare_direct_boot (BoxesUnattendedInstaller* base, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesFedoraInstaller * self;
	BoxesFedoraInstallerPrepareDirectBootData* _data_;
	BoxesFedoraInstaller* _tmp0_;
	GCancellable* _tmp1_;
	GCancellable* _tmp2_;
#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 (BoxesFedoraInstallerPrepareDirectBootData);
#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_direct_boot);
#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_direct_boot_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_ = cancellable;
#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"
	_data_->cancellable = _tmp2_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_real_prepare_direct_boot_co (_data_);
#line 701 "fedora-installer.c"
}


static void boxes_fedora_installer_real_prepare_direct_boot_finish (BoxesUnattendedInstaller* base, GAsyncResult* _res_, GError** error) {
	BoxesFedoraInstallerPrepareDirectBootData* _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 711 "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 715 "fedora-installer.c"
}


static void boxes_fedora_installer_prepare_direct_boot_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesFedoraInstallerPrepareDirectBootData* _data_;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = _user_data_;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_source_object_ = source_object;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_res_ = _res_;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_real_prepare_direct_boot_co (_data_);
#line 729 "fedora-installer.c"
}


static gboolean boxes_fedora_installer_real_prepare_direct_boot_co (BoxesFedoraInstallerPrepareDirectBootData* _data_) {
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	switch (_data_->_state_) {
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 0:
#line 738 "fedora-installer.c"
		goto _state_0;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 1:
#line 742 "fedora-installer.c"
		goto _state_1;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 2:
#line 746 "fedora-installer.c"
		goto _state_2;
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 3:
#line 750 "fedora-installer.c"
		goto _state_3;
		default:
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_assert_not_reached ();
#line 755 "fedora-installer.c"
	}
	_state_0:
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp0_ = ((BoxesUnattendedInstaller*) _data_->self)->express_toggle;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp1_ = gtk_switch_get_active (_data_->_tmp0_);
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 67 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (!_data_->_tmp2_) {
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 68 "/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 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 774 "fedora-installer.c"
		}
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 68 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 780 "fedora-installer.c"
	}
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp4_ = ((BoxesInstallerMedia*) _data_->self)->os_media;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp5_ = NULL;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_get (_data_->_tmp4_, "kernel-path", &_data_->_tmp5_, NULL);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp8_ = _data_->_tmp7_ == NULL;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->_tmp7_);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_tmp8_) {
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp3_ = TRUE;
#line 800 "fedora-installer.c"
	} else {
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp9_ = ((BoxesInstallerMedia*) _data_->self)->os_media;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp10_ = NULL;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_get (_data_->_tmp9_, "initrd-path", &_data_->_tmp10_, NULL);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp11_ = _data_->_tmp10_;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp12_ = _data_->_tmp11_;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp3_ = _data_->_tmp12_ == NULL;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (_data_->_tmp12_);
#line 816 "fedora-installer.c"
	}
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp13_ = _data_->_tmp3_;
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_tmp13_) {
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 826 "fedora-installer.c"
		} else {
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 830 "fedora-installer.c"
		}
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 71 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 836 "fedora-installer.c"
	}
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp14_ = _data_->cancellable;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_state_ = 1;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_mount_media (_data_->self, _data_->_tmp14_, boxes_fedora_installer_prepare_direct_boot_ready, _data_);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 846 "fedora-installer.c"
	_state_1:
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_mount_media_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#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 860 "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 864 "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 870 "fedora-installer.c"
	}
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp15_ = _data_->cancellable;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_state_ = 2;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_extract_boot_files (_data_->self, _data_->_tmp15_, boxes_fedora_installer_prepare_direct_boot_ready, _data_);
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 880 "fedora-installer.c"
	_state_2:
#line 75 "/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 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 894 "fedora-installer.c"
		} else {
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 898 "fedora-installer.c"
		}
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 904 "fedora-installer.c"
	}
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp16_ = _data_->cancellable;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_state_ = 3;
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_normal_clean_up (_data_->self, _data_->_tmp16_, boxes_fedora_installer_prepare_direct_boot_ready, _data_);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 914 "fedora-installer.c"
	_state_3:
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_normal_clean_up_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 928 "fedora-installer.c"
		} else {
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 932 "fedora-installer.c"
		}
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 77 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 938 "fedora-installer.c"
	}
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_state_ == 0) {
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 944 "fedora-installer.c"
	} else {
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 948 "fedora-installer.c"
	}
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_unref (_data_->_async_result);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 954 "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 80 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self = (BoxesFedoraInstaller*) base;
#line 81 "/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 81 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_inner_error_ != NULL) {
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_propagate_error (error, _inner_error_);
#line 81 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return;
#line 973 "fedora-installer.c"
	}
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = self->priv->kernel_file;
#line 83 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp0_ != NULL) {
#line 979 "fedora-installer.c"
		GFile* _tmp1_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp1_ = self->priv->kernel_file;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		boxes_delete_file (_tmp1_, &_inner_error_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_ != NULL) {
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_propagate_error (error, _inner_error_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return;
#line 991 "fedora-installer.c"
		}
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (self->priv->kernel_file);
#line 85 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		self->priv->kernel_file = NULL;
#line 997 "fedora-installer.c"
	}
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = self->priv->initrd_file;
#line 88 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp2_ != NULL) {
#line 1003 "fedora-installer.c"
		GFile* _tmp3_;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp3_ = self->priv->initrd_file;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		boxes_delete_file (_tmp3_, &_inner_error_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_ != NULL) {
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_propagate_error (error, _inner_error_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return;
#line 1015 "fedora-installer.c"
		}
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (self->priv->initrd_file);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		self->priv->initrd_file = NULL;
#line 1021 "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_;
	const gchar* _tmp10_ = NULL;
	gboolean _tmp11_;
	gboolean _tmp12_;
	const gchar* _tmp13_;
	gchar* _tmp14_;
	gchar* repos;
	GRegex* _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	gint _tmp18_;
	gint _tmp19_;
	const gchar* _tmp20_;
	gchar* _tmp21_ = NULL;
	gchar* _tmp22_;
	GError * _inner_error_ = NULL;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	self = (BoxesFedoraInstaller*) base;
#line 94 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_return_val_if_fail (data != NULL, NULL);
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = data;
#line 95 "/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 95 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	str = _tmp1_;
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_inner_error_ != NULL) {
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_->domain == G_REGEX_ERROR) {
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_propagate_error (error, _inner_error_);
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return NULL;
#line 1073 "fedora-installer.c"
		} else {
#line 95 "/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 95 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_clear_error (&_inner_error_);
#line 95 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return NULL;
#line 1081 "fedora-installer.c"
		}
	}
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = boxes_fedora_installer_kbd_regex;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp3_ = str;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp4_ = str;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp5_ = strlen (_tmp4_);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp6_ = _tmp5_;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp7_ = self->priv->kbd;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp8_ = g_regex_replace (_tmp2_, _tmp3_, (gssize) _tmp6_, 0, _tmp7_, 0, &_inner_error_);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp9_ = _tmp8_;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_inner_error_ != NULL) {
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_->domain == G_REGEX_ERROR) {
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_propagate_error (error, _inner_error_);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			_g_free0 (str);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return NULL;
#line 1110 "fedora-installer.c"
		} else {
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			_g_free0 (str);
#line 97 "/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 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_clear_error (&_inner_error_);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return NULL;
#line 1120 "fedora-installer.c"
		}
	}
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (str);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	str = _tmp9_;
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp11_ = boxes_fedora_installer_get_use_remote_repos (self);
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp12_ = _tmp11_;
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp12_) {
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp10_ = "repo --name=fedora\nrepo --name=updates";
#line 1135 "fedora-installer.c"
	} else {
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp10_ = "";
#line 1139 "fedora-installer.c"
	}
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp13_ = _tmp10_;
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp14_ = g_strdup (_tmp13_);
#line 99 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	repos = _tmp14_;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp15_ = boxes_fedora_installer_repo_regex;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp16_ = str;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp17_ = str;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp18_ = strlen (_tmp17_);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp19_ = _tmp18_;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp20_ = repos;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp21_ = g_regex_replace (_tmp15_, _tmp16_, (gssize) _tmp19_, 0, _tmp20_, 0, &_inner_error_);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp22_ = _tmp21_;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_inner_error_ != NULL) {
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_->domain == G_REGEX_ERROR) {
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_propagate_error (error, _inner_error_);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			_g_free0 (repos);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			_g_free0 (str);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return NULL;
#line 1175 "fedora-installer.c"
		} else {
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			_g_free0 (repos);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			_g_free0 (str);
#line 101 "/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 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_clear_error (&_inner_error_);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			return NULL;
#line 1187 "fedora-installer.c"
		}
	}
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	result = _tmp22_;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (repos);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (str);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return result;
#line 1198 "fedora-installer.c"
}


static void boxes_fedora_installer_normal_clean_up_data_free (gpointer _data) {
	BoxesFedoraInstallerNormalCleanUpData* _data_;
	_data_ = _data;
#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 (BoxesFedoraInstallerNormalCleanUpData, _data_);
#line 1211 "fedora-installer.c"
}


static void boxes_fedora_installer_normal_clean_up (BoxesFedoraInstaller* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesFedoraInstallerNormalCleanUpData* _data_;
	BoxesFedoraInstaller* _tmp0_;
	GCancellable* _tmp1_;
	GCancellable* _tmp2_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = g_slice_new0 (BoxesFedoraInstallerNormalCleanUpData);
#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_normal_clean_up);
#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_normal_clean_up_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_ = cancellable;
#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"
	_data_->cancellable = _tmp2_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_normal_clean_up_co (_data_);
#line 1238 "fedora-installer.c"
}


static void boxes_fedora_installer_normal_clean_up_finish (BoxesFedoraInstaller* self, GAsyncResult* _res_, GError** error) {
	BoxesFedoraInstallerNormalCleanUpData* _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 1248 "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 1252 "fedora-installer.c"
}


static void boxes_fedora_installer_normal_clean_up_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesFedoraInstallerNormalCleanUpData* _data_;
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = _user_data_;
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_source_object_ = source_object;
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_res_ = _res_;
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_normal_clean_up_co (_data_);
#line 1266 "fedora-installer.c"
}


static gboolean boxes_fedora_installer_normal_clean_up_co (BoxesFedoraInstallerNormalCleanUpData* _data_) {
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	switch (_data_->_state_) {
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 0:
#line 1275 "fedora-installer.c"
		goto _state_0;
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 1:
#line 1279 "fedora-installer.c"
		goto _state_1;
		default:
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_assert_not_reached ();
#line 1284 "fedora-installer.c"
	}
	_state_0:
#line 105 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp0_ = _data_->self->priv->mounted;
#line 105 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (!_data_->_tmp0_) {
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1295 "fedora-installer.c"
		} else {
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1299 "fedora-installer.c"
		}
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1305 "fedora-installer.c"
	}
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp1_ = ((BoxesInstallerMedia*) _data_->self)->mount_point;
#line 108 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_debug ("fedora-installer.vala:108: Unmounting '%s'..", _data_->_tmp1_);
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp2_ = g_strdup ("fusermount");
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp3_ = g_strdup ("-u");
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp4_ = ((BoxesInstallerMedia*) _data_->self)->mount_point;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp5_ = g_strdup (_data_->_tmp4_);
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp6_ = NULL;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp6_ = g_new0 (gchar*, 3 + 1);
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp6_[0] = _data_->_tmp2_;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp6_[1] = _data_->_tmp3_;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp6_[2] = _data_->_tmp5_;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->argv = _data_->_tmp6_;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->argv_length1 = 3;
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_argv_size_ = _data_->argv_length1;
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp7_ = _data_->argv;
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp7__length1 = _data_->argv_length1;
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp8_ = _data_->cancellable;
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_state_ = 1;
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_exec (_data_->_tmp7_, _data_->_tmp7__length1, _data_->_tmp8_, boxes_fedora_installer_normal_clean_up_ready, _data_);
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 1347 "fedora-installer.c"
	_state_1:
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_exec_finish (_data_->_res_, &_data_->_inner_error_);
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->argv = (_vala_array_free (_data_->argv, _data_->argv_length1, (GDestroyNotify) g_free), NULL);
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1363 "fedora-installer.c"
		} else {
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1367 "fedora-installer.c"
		}
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1373 "fedora-installer.c"
	}
#line 111 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->mounted = FALSE;
#line 112 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp9_ = ((BoxesInstallerMedia*) _data_->self)->mount_point;
#line 112 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_debug ("fedora-installer.vala:112: Unmounted '%s'.", _data_->_tmp9_);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp10_ = _data_->self->priv->source_dir;
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_file_delete (_data_->_tmp10_, NULL, &_data_->_inner_error_);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->argv = (_vala_array_free (_data_->argv, _data_->argv_length1, (GDestroyNotify) g_free), NULL);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1397 "fedora-installer.c"
		} else {
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1401 "fedora-installer.c"
		}
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 114 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1407 "fedora-installer.c"
	}
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp11_ = ((BoxesInstallerMedia*) _data_->self)->mount_point;
#line 115 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_debug ("fedora-installer.vala:115: Removed '%s'.", _data_->_tmp11_);
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (((BoxesInstallerMedia*) _data_->self)->mount_point);
#line 116 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	((BoxesInstallerMedia*) _data_->self)->mount_point = NULL;
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->argv = (_vala_array_free (_data_->argv, _data_->argv_length1, (GDestroyNotify) g_free), NULL);
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_state_ == 0) {
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1423 "fedora-installer.c"
	} else {
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1427 "fedora-installer.c"
	}
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_unref (_data_->_async_result);
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 1433 "fedora-installer.c"
}


static void boxes_fedora_installer_mount_media_data_free (gpointer _data) {
	BoxesFedoraInstallerMountMediaData* _data_;
	_data_ = _data;
#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 (BoxesFedoraInstallerMountMediaData, _data_);
#line 1446 "fedora-installer.c"
}


static void boxes_fedora_installer_mount_media (BoxesFedoraInstaller* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesFedoraInstallerMountMediaData* _data_;
	BoxesFedoraInstaller* _tmp0_;
	GCancellable* _tmp1_;
	GCancellable* _tmp2_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = g_slice_new0 (BoxesFedoraInstallerMountMediaData);
#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_mount_media);
#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_mount_media_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_ = cancellable;
#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"
	_data_->cancellable = _tmp2_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_mount_media_co (_data_);
#line 1473 "fedora-installer.c"
}


static void boxes_fedora_installer_mount_media_finish (BoxesFedoraInstaller* self, GAsyncResult* _res_, GError** error) {
	BoxesFedoraInstallerMountMediaData* _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 1483 "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 1487 "fedora-installer.c"
}


static void boxes_fedora_installer_mount_media_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesFedoraInstallerMountMediaData* _data_;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_ = _user_data_;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_source_object_ = source_object;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_res_ = _res_;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_mount_media_co (_data_);
#line 1501 "fedora-installer.c"
}


static gboolean boxes_fedora_installer_mount_media_co (BoxesFedoraInstallerMountMediaData* _data_) {
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	switch (_data_->_state_) {
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 0:
#line 1510 "fedora-installer.c"
		goto _state_0;
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 1:
#line 1514 "fedora-installer.c"
		goto _state_1;
		default:
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_assert_not_reached ();
#line 1519 "fedora-installer.c"
	}
	_state_0:
#line 120 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp0_ = ((BoxesInstallerMedia*) _data_->self)->mount_point;
#line 120 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_tmp0_ != NULL) {
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp1_ = ((BoxesInstallerMedia*) _data_->self)->mount_point;
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp2_ = NULL;
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp2_ = g_file_new_for_path (_data_->_tmp1_);
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (_data_->self->priv->source_dir);
#line 121 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->self->priv->source_dir = _data_->_tmp2_;
#line 123 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 123 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1540 "fedora-installer.c"
		} else {
#line 123 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1544 "fedora-installer.c"
		}
#line 123 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 123 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1550 "fedora-installer.c"
	}
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp3_ = NULL;
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp3_ = boxes_unattended_installer_get_user_unattended ((BoxesUnattendedInstaller*) _data_->self, NULL);
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (((BoxesInstallerMedia*) _data_->self)->mount_point);
#line 126 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	((BoxesInstallerMedia*) _data_->self)->mount_point = _data_->_tmp3_;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp4_ = ((BoxesInstallerMedia*) _data_->self)->mount_point;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp5_ = NULL;
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp5_ = g_file_new_for_path (_data_->_tmp4_);
#line 127 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->dir = _data_->_tmp5_;
#line 1568 "fedora-installer.c"
	{
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp6_ = _data_->dir;
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_file_make_directory (_data_->_tmp6_, NULL, &_data_->_inner_error_);
#line 129 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_inner_error_ != NULL) {
#line 129 "/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 1578 "fedora-installer.c"
				goto __catch12_g_io_error_exists;
			}
			goto __finally12;
		}
	}
	goto __finally12;
	__catch12_g_io_error_exists:
	{
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_inner_error_ = NULL;
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_error_free0 (_data_->_error_);
#line 1593 "fedora-installer.c"
	}
	__finally12:
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (_data_->dir);
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1608 "fedora-installer.c"
		} else {
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1612 "fedora-installer.c"
		}
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 128 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1618 "fedora-installer.c"
	}
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp7_ = _data_->dir;
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp8_ = _g_object_ref0 (_data_->_tmp7_);
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->self->priv->source_dir);
#line 131 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->source_dir = _data_->_tmp8_;
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp9_ = ((BoxesInstallerMedia*) _data_->self)->device_file;
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp10_ = ((BoxesInstallerMedia*) _data_->self)->mount_point;
#line 133 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_debug ("fedora-installer.vala:133: Mounting '%s' on '%s'..", _data_->_tmp9_, _data_->_tmp10_);
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp11_ = g_strdup ("fuseiso");
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp12_ = ((BoxesInstallerMedia*) _data_->self)->device_file;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp13_ = g_strdup (_data_->_tmp12_);
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp14_ = ((BoxesInstallerMedia*) _data_->self)->mount_point;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp15_ = g_strdup (_data_->_tmp14_);
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp16_ = NULL;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp16_ = g_new0 (gchar*, 3 + 1);
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp16_[0] = _data_->_tmp11_;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp16_[1] = _data_->_tmp13_;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp16_[2] = _data_->_tmp15_;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->argv = _data_->_tmp16_;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->argv_length1 = 3;
#line 134 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_argv_size_ = _data_->argv_length1;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp17_ = _data_->argv;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp17__length1 = _data_->argv_length1;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp18_ = _data_->cancellable;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_state_ = 1;
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_exec (_data_->_tmp17_, _data_->_tmp17__length1, _data_->_tmp18_, boxes_fedora_installer_mount_media_ready, _data_);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 1672 "fedora-installer.c"
	_state_1:
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_exec_finish (_data_->_res_, &_data_->_inner_error_);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->argv = (_vala_array_free (_data_->argv, _data_->argv_length1, (GDestroyNotify) g_free), NULL);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (_data_->dir);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1690 "fedora-installer.c"
		} else {
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1694 "fedora-installer.c"
		}
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 135 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1700 "fedora-installer.c"
	}
#line 136 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp19_ = ((BoxesInstallerMedia*) _data_->self)->device_file;
#line 136 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp20_ = ((BoxesInstallerMedia*) _data_->self)->mount_point;
#line 136 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_debug ("fedora-installer.vala:136: '%s' now mounted on '%s'.", _data_->_tmp19_, _data_->_tmp20_);
#line 138 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->mounted = TRUE;
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->argv = (_vala_array_free (_data_->argv, _data_->argv_length1, (GDestroyNotify) g_free), NULL);
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->dir);
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_state_ == 0) {
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1718 "fedora-installer.c"
	} else {
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1722 "fedora-installer.c"
	}
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_unref (_data_->_async_result);
#line 119 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 1728 "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_->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 1741 "fedora-installer.c"
}


static void boxes_fedora_installer_extract_boot_files (BoxesFedoraInstaller* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesFedoraInstallerExtractBootFilesData* _data_;
	BoxesFedoraInstaller* _tmp0_;
	GCancellable* _tmp1_;
	GCancellable* _tmp2_;
#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_ = cancellable;
#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"
	_data_->cancellable = _tmp2_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_extract_boot_files_co (_data_);
#line 1768 "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 1778 "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 1782 "fedora-installer.c"
}


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


static gboolean boxes_fedora_installer_extract_boot_files_co (BoxesFedoraInstallerExtractBootFilesData* _data_) {
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	switch (_data_->_state_) {
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 0:
#line 1805 "fedora-installer.c"
		goto _state_0;
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 1:
#line 1809 "fedora-installer.c"
		goto _state_1;
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 2:
#line 1813 "fedora-installer.c"
		goto _state_2;
		default:
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_assert_not_reached ();
#line 1818 "fedora-installer.c"
	}
	_state_0:
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp0_ = ((BoxesInstallerMedia*) _data_->self)->mount_point;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp1_ = ((BoxesInstallerMedia*) _data_->self)->os_media;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp2_ = NULL;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_get (_data_->_tmp1_, "kernel-path", &_data_->_tmp2_, NULL);
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp5_ = NULL;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp5_ = g_build_filename (_data_->_tmp0_, _data_->_tmp4_, NULL);
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->self->priv->kernel_path);
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->kernel_path = _data_->_tmp5_;
#line 142 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->_tmp4_);
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp6_ = _data_->self->priv->kernel_path;
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp7_ = NULL;
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp7_ = g_file_new_for_path (_data_->_tmp6_);
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->self->priv->kernel_file);
#line 143 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->kernel_file = _data_->_tmp7_;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp8_ = ((BoxesInstallerMedia*) _data_->self)->mount_point;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp9_ = ((BoxesInstallerMedia*) _data_->self)->os_media;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp10_ = NULL;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_get (_data_->_tmp9_, "initrd-path", &_data_->_tmp10_, NULL);
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp11_ = _data_->_tmp10_;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp12_ = _data_->_tmp11_;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp13_ = NULL;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp13_ = g_build_filename (_data_->_tmp8_, _data_->_tmp12_, NULL);
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->self->priv->initrd_path);
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->initrd_path = _data_->_tmp13_;
#line 144 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->_tmp12_);
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp14_ = _data_->self->priv->initrd_path;
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp15_ = NULL;
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp15_ = g_file_new_for_path (_data_->_tmp14_);
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->self->priv->initrd_file);
#line 145 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->initrd_file = _data_->_tmp15_;
#line 147 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp16_ = _data_->self->priv->mounted;
#line 147 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (!_data_->_tmp16_) {
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1893 "fedora-installer.c"
		} else {
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1897 "fedora-installer.c"
		}
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 148 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1903 "fedora-installer.c"
	}
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp17_ = NULL;
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp17_ = boxes_unattended_installer_get_user_unattended ((BoxesUnattendedInstaller*) _data_->self, "kernel");
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->self->priv->kernel_path);
#line 150 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->kernel_path = _data_->_tmp17_;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp18_ = _data_->self->priv->kernel_file;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp19_ = _data_->self->priv->kernel_path;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp20_ = _data_->cancellable;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_state_ = 1;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_copy_file (_data_->self, _data_->_tmp18_, _data_->_tmp19_, _data_->_tmp20_, boxes_fedora_installer_extract_boot_files_ready, _data_);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 1925 "fedora-installer.c"
	_state_1:
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp21_ = NULL;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp21_ = boxes_fedora_installer_copy_file_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp22_ = _data_->_tmp21_;
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1943 "fedora-installer.c"
		} else {
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1947 "fedora-installer.c"
		}
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 1953 "fedora-installer.c"
	}
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->self->priv->kernel_file);
#line 151 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->kernel_file = _data_->_tmp22_;
#line 152 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp23_ = NULL;
#line 152 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp23_ = boxes_unattended_installer_get_user_unattended ((BoxesUnattendedInstaller*) _data_->self, "initrd");
#line 152 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (_data_->self->priv->initrd_path);
#line 152 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->initrd_path = _data_->_tmp23_;
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp24_ = _data_->self->priv->initrd_file;
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp25_ = _data_->self->priv->initrd_path;
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp26_ = _data_->cancellable;
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_state_ = 2;
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_copy_file (_data_->self, _data_->_tmp24_, _data_->_tmp25_, _data_->_tmp26_, boxes_fedora_installer_extract_boot_files_ready, _data_);
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 1979 "fedora-installer.c"
	_state_2:
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp27_ = NULL;
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp27_ = boxes_fedora_installer_copy_file_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp28_ = _data_->_tmp27_;
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1997 "fedora-installer.c"
		} else {
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2001 "fedora-installer.c"
		}
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 2007 "fedora-installer.c"
	}
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->self->priv->initrd_file);
#line 153 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->self->priv->initrd_file = _data_->_tmp28_;
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_state_ == 0) {
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2017 "fedora-installer.c"
	} else {
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2021 "fedora-installer.c"
	}
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_unref (_data_->_async_result);
#line 141 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 2027 "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_object_unref0 (_data_->file);
#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 2046 "fedora-installer.c"
}


static void boxes_fedora_installer_copy_file (BoxesFedoraInstaller* self, GFile* file, const gchar* dest_path, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesFedoraInstallerCopyFileData* _data_;
	BoxesFedoraInstaller* _tmp0_;
	GFile* _tmp1_;
	GFile* _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_ = file;
#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"
	_data_->file = _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"
	_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"
	_data_->cancellable = _tmp6_;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_copy_file_co (_data_);
#line 2089 "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 2100 "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 2110 "fedora-installer.c"
}


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


static gboolean boxes_fedora_installer_copy_file_co (BoxesFedoraInstallerCopyFileData* _data_) {
#line 156 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	switch (_data_->_state_) {
#line 156 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 0:
#line 2133 "fedora-installer.c"
		goto _state_0;
#line 156 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		case 1:
#line 2137 "fedora-installer.c"
		goto _state_1;
		default:
#line 156 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_assert_not_reached ();
#line 2142 "fedora-installer.c"
	}
	_state_0:
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp0_ = _data_->dest_path;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp1_ = NULL;
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->_tmp1_ = g_file_new_for_path (_data_->_tmp0_);
#line 157 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->dest_file = _data_->_tmp1_;
#line 2153 "fedora-installer.c"
	{
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp2_ = _data_->file;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp3_ = NULL;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp3_ = g_file_get_path (_data_->_tmp2_);
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp4_ = _data_->_tmp3_;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp5_ = _data_->dest_path;
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_debug ("fedora-installer.vala:160: Copying '%s' to '%s'..", _data_->_tmp4_, _data_->_tmp5_);
#line 160 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (_data_->_tmp4_);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp6_ = _data_->file;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp7_ = _data_->cancellable;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_state_ = 1;
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_file_copy_async (_data_->_tmp6_, _data_->dest_file, 0, G_PRIORITY_DEFAULT, _data_->_tmp7_, NULL, NULL, boxes_fedora_installer_copy_file_ready, _data_);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 2179 "fedora-installer.c"
		_state_1:
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_file_copy_finish (_data_->_tmp6_, _data_->_res_, &_data_->_inner_error_);
#line 161 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_inner_error_ != NULL) {
#line 161 "/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 2187 "fedora-installer.c"
				goto __catch13_g_io_error_exists;
			}
			goto __finally13;
		}
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp8_ = _data_->file;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp9_ = NULL;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp9_ = g_file_get_path (_data_->_tmp8_);
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp10_ = _data_->_tmp9_;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_tmp11_ = _data_->dest_path;
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_debug ("fedora-installer.vala:162: Copied '%s' to '%s'.", _data_->_tmp10_, _data_->_tmp11_);
#line 162 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (_data_->_tmp10_);
#line 2206 "fedora-installer.c"
	}
	goto __finally13;
	__catch13_g_io_error_exists:
	{
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_data_->_inner_error_ = NULL;
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_error_free0 (_data_->_error_);
#line 2217 "fedora-installer.c"
	}
	__finally13:
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_error_free (_data_->_inner_error_);
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (_data_->dest_file);
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_data_->_state_ == 0) {
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2232 "fedora-installer.c"
		} else {
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2236 "fedora-installer.c"
		}
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_object_unref (_data_->_async_result);
#line 159 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return FALSE;
#line 2242 "fedora-installer.c"
	}
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_data_->result = _data_->dest_file;
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_state_ == 0) {
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2250 "fedora-installer.c"
	} else {
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2254 "fedora-installer.c"
	}
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_unref (_data_->_async_result);
#line 165 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 156 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (_data_->dest_file);
#line 156 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_data_->_state_ == 0) {
#line 156 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2266 "fedora-installer.c"
	} else {
#line 156 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2270 "fedora-installer.c"
	}
#line 156 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_object_unref (_data_->_async_result);
#line 156 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return FALSE;
#line 2276 "fedora-installer.c"
}


static gchar* boxes_fedora_installer_fetch_console_kbd_layout (BoxesFedoraInstaller* self) {
	gchar* result = NULL;
	GSettings* _tmp0_;
	GSettings* settings;
	GSettings* _tmp1_;
	gchar** _tmp2_;
	gchar** _tmp3_ = NULL;
	gchar** layouts;
	gint layouts_length1;
	gint _layouts_size_;
	gchar** _tmp4_;
	gint _tmp4__length1;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* layout_str;
	gboolean _tmp7_ = FALSE;
	const gchar* _tmp8_;
	gboolean _tmp10_;
	const gchar* _tmp12_;
	gchar** _tmp13_;
	gchar** _tmp14_ = NULL;
	gchar** tokens;
	gint tokens_length1;
	gint _tokens_size_;
	gchar** _tmp15_;
	gint _tmp15__length1;
	const gchar* _tmp16_;
	gchar* _tmp17_;
	gchar* xkb_layout;
	gchar** _tmp18_;
	gint _tmp18__length1;
	const gchar* _tmp19_;
	gchar* _tmp20_;
	gchar* xkb_variant;
	gchar* _tmp21_;
	gchar* console_layout;
	const gchar* _tmp45_;
	const gchar* _tmp48_;
#line 174 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 175 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = g_settings_new ("org.gnome.libgnomekbd.keyboard");
#line 175 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	settings = _tmp0_;
#line 176 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = settings;
#line 176 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp3_ = _tmp2_ = g_settings_get_strv (_tmp1_, "layouts");
#line 176 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	layouts = _tmp3_;
#line 176 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	layouts_length1 = _vala_array_length (_tmp2_);
#line 176 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_layouts_size_ = layouts_length1;
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp4_ = layouts;
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp4__length1 = layouts_length1;
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp5_ = _tmp4_[0];
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp6_ = g_strdup (_tmp5_);
#line 177 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	layout_str = _tmp6_;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp8_ = layout_str;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp8_ == NULL) {
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp7_ = TRUE;
#line 2350 "fedora-installer.c"
	} else {
		const gchar* _tmp9_;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp9_ = layout_str;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp7_ = g_strcmp0 (_tmp9_, "") == 0;
#line 2357 "fedora-installer.c"
	}
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp10_ = _tmp7_;
#line 178 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp10_) {
#line 2363 "fedora-installer.c"
		gchar* _tmp11_;
#line 179 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_warning ("fedora-installer.vala:179: Failed to fetch prefered keyboard layout fr" \
"om user settings, falling back to 'us'..");
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp11_ = g_strdup ("us");
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		result = _tmp11_;
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (layout_str);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		layouts = (_vala_array_free (layouts, layouts_length1, (GDestroyNotify) g_free), NULL);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_object_unref0 (settings);
#line 181 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		return result;
#line 2379 "fedora-installer.c"
	}
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp12_ = layout_str;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp14_ = _tmp13_ = g_strsplit (_tmp12_, "\t", 0);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	tokens = _tmp14_;
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	tokens_length1 = _vala_array_length (_tmp13_);
#line 184 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tokens_size_ = tokens_length1;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp15_ = tokens;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp15__length1 = tokens_length1;
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp16_ = _tmp15_[0];
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp17_ = g_strdup (_tmp16_);
#line 185 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	xkb_layout = _tmp17_;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp18_ = tokens;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp18__length1 = tokens_length1;
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp19_ = _tmp18_[1];
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp20_ = g_strdup (_tmp19_);
#line 186 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	xkb_variant = _tmp20_;
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp21_ = g_strdup ((const gchar*) NULL);
#line 187 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	console_layout = _tmp21_;
#line 2415 "fedora-installer.c"
	{
		gint i;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		i = 0;
#line 2420 "fedora-installer.c"
		{
			gboolean _tmp22_;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			_tmp22_ = TRUE;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			while (TRUE) {
#line 2427 "fedora-installer.c"
				gboolean _tmp23_;
				gint _tmp25_;
				const gchar* _tmp26_;
				gint _tmp27_;
				BoxesFedoraInstallerKbdLayout _tmp28_;
				const gchar* _tmp29_;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp23_ = _tmp22_;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				if (!_tmp23_) {
#line 2438 "fedora-installer.c"
					gint _tmp24_;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp24_ = i;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					i = _tmp24_ + 1;
#line 2444 "fedora-installer.c"
				}
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp22_ = FALSE;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp25_ = i;
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				if (!(_tmp25_ < G_N_ELEMENTS (BOXES_FEDORA_INSTALLER_kbd_layouts))) {
#line 189 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					break;
#line 2454 "fedora-installer.c"
				}
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp26_ = xkb_layout;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp27_ = i;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp28_ = BOXES_FEDORA_INSTALLER_kbd_layouts[_tmp27_];
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				_tmp29_ = _tmp28_.xkb_layout;
#line 190 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
				if (g_strcmp0 (_tmp26_, _tmp29_) == 0) {
#line 2466 "fedora-installer.c"
					const gchar* _tmp30_;
					gint _tmp31_;
					BoxesFedoraInstallerKbdLayout _tmp32_;
					const gchar* _tmp33_;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp30_ = xkb_variant;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp31_ = i;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp32_ = BOXES_FEDORA_INSTALLER_kbd_layouts[_tmp31_];
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					_tmp33_ = _tmp32_.xkb_variant;
#line 191 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
					if (g_strcmp0 (_tmp30_, _tmp33_) == 0) {
#line 2481 "fedora-installer.c"
						gint _tmp34_;
						BoxesFedoraInstallerKbdLayout _tmp35_;
						const gchar* _tmp36_;
						gchar* _tmp37_;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp34_ = i;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp35_ = BOXES_FEDORA_INSTALLER_kbd_layouts[_tmp34_];
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp36_ = _tmp35_.console_layout;
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp37_ = g_strdup (_tmp36_);
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_g_free0 (console_layout);
#line 192 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						console_layout = _tmp37_;
#line 195 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						break;
#line 2500 "fedora-installer.c"
					} else {
						gint _tmp38_;
						BoxesFedoraInstallerKbdLayout _tmp39_;
						const gchar* _tmp40_;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp38_ = i;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp39_ = BOXES_FEDORA_INSTALLER_kbd_layouts[_tmp38_];
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						_tmp40_ = _tmp39_.xkb_variant;
#line 196 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
						if (_tmp40_ == NULL) {
#line 2513 "fedora-installer.c"
							gint _tmp41_;
							BoxesFedoraInstallerKbdLayout _tmp42_;
							const gchar* _tmp43_;
							gchar* _tmp44_;
#line 197 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
							_tmp41_ = i;
#line 197 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
							_tmp42_ = BOXES_FEDORA_INSTALLER_kbd_layouts[_tmp41_];
#line 197 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
							_tmp43_ = _tmp42_.console_layout;
#line 197 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
							_tmp44_ = g_strdup (_tmp43_);
#line 197 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
							_g_free0 (console_layout);
#line 197 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
							console_layout = _tmp44_;
#line 2530 "fedora-installer.c"
						}
					}
				}
			}
		}
	}
#line 199 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp45_ = console_layout;
#line 199 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp45_ == NULL) {
#line 2541 "fedora-installer.c"
		const gchar* _tmp46_;
		gchar* _tmp47_;
#line 200 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp46_ = layout_str;
#line 200 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_debug ("fedora-installer.vala:200: Couldn't find a console layout for X layout" \
" '%s', falling back to 'us'..", _tmp46_);
#line 201 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp47_ = g_strdup ("us");
#line 201 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_free0 (console_layout);
#line 201 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		console_layout = _tmp47_;
#line 2554 "fedora-installer.c"
	}
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp48_ = console_layout;
#line 203 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_debug ("fedora-installer.vala:203: Using '%s' keyboard layout.", _tmp48_);
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	result = console_layout;
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (xkb_variant);
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (xkb_layout);
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	tokens = (_vala_array_free (tokens, tokens_length1, (GDestroyNotify) g_free), NULL);
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (layout_str);
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	layouts = (_vala_array_free (layouts, layouts_length1, (GDestroyNotify) g_free), NULL);
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (settings);
#line 205 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return result;
#line 2576 "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 2586 "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 2593 "fedora-installer.c"
}


static guint64 uint64_parse (const gchar* str) {
	guint64 result = 0ULL;
	const gchar* _tmp0_;
	guint64 _tmp1_ = 0ULL;
#line 645 "../vapi/upstream/glib-2.0.vapi"
	g_return_val_if_fail (str != NULL, 0ULL);
#line 646 "../vapi/upstream/glib-2.0.vapi"
	_tmp0_ = str;
#line 646 "../vapi/upstream/glib-2.0.vapi"
	_tmp1_ = g_ascii_strtoull (_tmp0_, NULL, (guint) 0);
#line 646 "../vapi/upstream/glib-2.0.vapi"
	result = _tmp1_;
#line 646 "../vapi/upstream/glib-2.0.vapi"
	return result;
#line 2611 "fedora-installer.c"
}


static gboolean boxes_fedora_installer_get_use_remote_repos (BoxesFedoraInstaller* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp7_;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = boxes_unattended_installer_get_express_install ((BoxesUnattendedInstaller*) self);
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = _tmp1_;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	if (_tmp2_) {
#line 2629 "fedora-installer.c"
		OsinfoOs* _tmp3_;
		const gchar* _tmp4_;
		const gchar* _tmp5_;
		guint64 _tmp6_ = 0ULL;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp3_ = ((BoxesInstallerMedia*) self)->os;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp4_ = osinfo_product_get_version ((OsinfoProduct*) _tmp3_);
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp5_ = _tmp4_;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp6_ = uint64_parse (_tmp5_);
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp0_ = _tmp6_ < ((guint64) 17);
#line 2644 "fedora-installer.c"
	} else {
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp0_ = FALSE;
#line 2648 "fedora-installer.c"
	}
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp7_ = _tmp0_;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	result = _tmp7_;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	return result;
#line 2656 "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 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp0_ = (*self).xkb_layout;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 ((*dest).xkb_layout);
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	(*dest).xkb_layout = _tmp1_;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp2_ = (*self).xkb_variant;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 ((*dest).xkb_variant);
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	(*dest).xkb_variant = _tmp3_;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp4_ = (*self).console_layout;
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_tmp5_ = g_strdup (_tmp4_);
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 ((*dest).console_layout);
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	(*dest).console_layout = _tmp5_;
#line 2691 "fedora-installer.c"
}


static void boxes_fedora_installer_kbd_layout_destroy (BoxesFedoraInstallerKbdLayout* self) {
#line 169 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 ((*self).xkb_layout);
#line 170 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 ((*self).xkb_variant);
#line 171 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 ((*self).console_layout);
#line 2702 "fedora-installer.c"
}


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


static void boxes_fedora_installer_kbd_layout_free (BoxesFedoraInstallerKbdLayout* self) {
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	boxes_fedora_installer_kbd_layout_destroy (self);
#line 168 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	g_free (self);
#line 2723 "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)->check_needed_info = boxes_fedora_installer_real_check_needed_info;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	BOXES_UNATTENDED_INSTALLER_CLASS (klass)->prepare_direct_boot = boxes_fedora_installer_real_prepare_direct_boot;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	BOXES_UNATTENDED_INSTALLER_CLASS (klass)->prepare_direct_boot_finish = boxes_fedora_installer_real_prepare_direct_boot_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)->get_property = _vala_boxes_fedora_installer_get_property;
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_fedora_installer_finalize;
#line 2760 "fedora-installer.c"
	{
		GRegex* _tmp0_;
		GRegex* _tmp1_;
		GRegex* _tmp2_;
		GRegex* _tmp3_;
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp0_ = g_regex_new ("BOXES_FEDORA_REPOS", 0, 0, &_inner_error_);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp1_ = _tmp0_;
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_ != NULL) {
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 2774 "fedora-installer.c"
				goto __catch14_g_regex_error;
			}
#line 24 "/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 24 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_clear_error (&_inner_error_);
#line 2781 "fedora-installer.c"
		}
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_regex_unref0 (boxes_fedora_installer_repo_regex);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		boxes_fedora_installer_repo_regex = _tmp1_;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp2_ = g_regex_new ("BOXES_FEDORA_KBD", 0, 0, &_inner_error_);
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_tmp3_ = _tmp2_;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		if (_inner_error_ != NULL) {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 2795 "fedora-installer.c"
				goto __catch14_g_regex_error;
			}
#line 25 "/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 25 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
			g_clear_error (&_inner_error_);
#line 2802 "fedora-installer.c"
		}
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_regex_unref0 (boxes_fedora_installer_kbd_regex);
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		boxes_fedora_installer_kbd_regex = _tmp3_;
#line 2808 "fedora-installer.c"
	}
	goto __finally14;
	__catch14_g_regex_error:
	{
		GError* _error_ = NULL;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_error_ = _inner_error_;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_inner_error_ = NULL;
#line 28 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_assert_not_reached ();
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		_g_error_free0 (_error_);
#line 2822 "fedora-installer.c"
	}
	__finally14:
#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_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 23 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		g_clear_error (&_inner_error_);
#line 2831 "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 2839 "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 6 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (self->priv->source_dir);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (self->priv->kernel_file);
#line 8 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_object_unref0 (self->priv->initrd_file);
#line 10 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (self->priv->kernel_path);
#line 11 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	_g_free0 (self->priv->initrd_path);
#line 13 "/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 2861 "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_boxes_fedora_installer_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesFedoraInstaller * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_FEDORA_INSTALLER, BoxesFedoraInstaller);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
	switch (property_id) {
#line 2882 "fedora-installer.c"
		default:
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 3 "/extra-data/checkout/gnome/gnome-boxes/src/fedora-installer.vala"
		break;
#line 2888 "fedora-installer.c"
	}
}


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;
}



