[gnome-boxes/handle-live-guests: 6/8] libvirt-machine-properties: Allow users to add cdrom source during install




commit 2a28e4bae8fc89f0ba5e5aef7242207f12b42c9e
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Feb 8 12:40:04 2021 +0100

    libvirt-machine-properties: Allow users to add cdrom source during install
    
    We now want to give users more freedom to choose how they install
    their guest OSes. This way, one can add and remove image sources
    for an uninstalled VMs. This is useful for testing live images.

 src/libvirt-machine-properties.vala | 11 -----------
 1 file changed, 11 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 025db7dc..1ff52fb1 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -182,17 +182,6 @@ private void add_cdrom_property (GVirConfig.DomainDisk disk_config, ref List<Box
         else
             label.set_text (get_utf8_basename (source));
 
-        if (machine.vm_creator != null) {
-            var media = machine.vm_creator.install_media;
-
-            if (machine.vm_creator.express_install || (media.os_media != null && media.os_media.live)) {
-                // Don't let user eject installer media if it's an express installation or a live media
-                add_property (ref list, _("CD/DVD"), grid);
-
-                return;
-            }
-        }
-
         var button_label = new Gtk.Label ("");
         var button = new Gtk.Button ();
         button.add (button_label);


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