[gnome-boxes] installer: Use command line info from libosinfo



commit 755b24fe93a6c5bde78bc92ffaceb4858a513781
Author: Fabiano Fidêncio <fidencio redhat com>
Date:   Thu Apr 11 00:57:12 2013 +0200

    installer: Use command line info from libosinfo
    
    As libosinfo is able to provide the command line necessary to load install
    script files, let's use this info instead of hardcode it in our code.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697843

 src/unattended-installer.vala | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 0b49cd8..f9de200 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -292,17 +292,15 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
         return properties;
     }
 
-    public override void set_direct_boot_params (GVirConfig.DomainOs os) {
+    public override void set_direct_boot_params (GVirConfig.DomainOs domain_os) {
         if (kernel_file == null || initrd_file == null)
             return;
 
-        // FIXME: This commandline should come from libosinfo somehow
         var script = scripts.get_nth (0) as InstallScript;
-        var cmdline = "ks=hd:sda:/" + script.get_expected_filename ();
 
-        os.set_kernel (kernel_file.get_path ());
-        os.set_ramdisk (initrd_file.get_path ());
-        os.set_cmdline (cmdline);
+        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));
     }
 
     public override void clean_up () {


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