[gnome-boxes] unattended: Use Osinfo.InstallScript.generate_*for_media



commit 8eb97054393bba14cfca22578f0d11aab87c72bf
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri May 8 12:40:41 2015 +0100

    unattended: Use Osinfo.InstallScript.generate_*for_media
    
    Use the new API that passed the media to install script templates. Not
    only are the new API the recommended ones to use if you have an
    identified media at hand (which we do) but it also makes Fedora 21 and
    22 express install working again.

 src/unattended-file.vala      |    5 ++++-
 src/unattended-installer.vala |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/unattended-file.vala b/src/unattended-file.vala
index b38baf6..7d8bead 100644
--- a/src/unattended-file.vala
+++ b/src/unattended-file.vala
@@ -146,7 +146,10 @@ private class Boxes.UnattendedScriptFile : GLib.Object, Boxes.UnattendedFile {
         installer.configure_install_script (script);
         var output_dir = File.new_for_path (get_user_pkgcache ());
 
-        unattended_tmp = yield script.generate_output_async (installer.os, installer.config, output_dir, 
cancellable);
+        unattended_tmp = yield script.generate_output_for_media_async (installer.os_media,
+                                                                       installer.config,
+                                                                       output_dir,
+                                                                       cancellable);
 
         return unattended_tmp;
     }
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 5a22a7b..f0409b1 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -292,7 +292,7 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
 
         domain_os.set_kernel (kernel_file.get_path ());
         domain_os.set_ramdisk (initrd_file.get_path ());
-        domain_os.set_cmdline (script.generate_command_line (os, config));
+        domain_os.set_cmdline (script.generate_command_line_for_media (os_media, config));
     }
 
     public override void clean_up () {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]