[gnome-boxes] installed-media: Add empty CDROM device
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] installed-media: Add empty CDROM device
- Date: Mon, 1 Jun 2015 12:57:21 +0000 (UTC)
commit 5e728a8ea6b2d3769fb1bdf49530d011b113e530
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Jun 1 13:53:38 2015 +0100
installed-media: Add empty CDROM device
This is so that imported VMs also have CDROM device.
https://bugzilla.gnome.org/show_bug.cgi?id=748962
src/installed-media.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/installed-media.vala b/src/installed-media.vala
index 28be17e..41a6b5c 100644
--- a/src/installed-media.vala
+++ b/src/installed-media.vala
@@ -96,7 +96,9 @@ private class Boxes.InstalledMedia : Boxes.InstallerMedia {
}
}
- public override void setup_domain_config (Domain domain) {}
+ public override void setup_domain_config (Domain domain) {
+ add_cd_config (domain, from_image? DomainDiskType.FILE : DomainDiskType.BLOCK, null, "hdc", false);
+ }
public override GLib.List<Pair<string,string>> get_vm_properties () {
var properties = new GLib.List<Pair<string,string>> ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]