mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
guest: Remove code for default virtio console
It's been disabled for a while and we don't plan on re-enabling it
This commit is contained in:
parent
9da74dc7ea
commit
a538b69356
@ -629,13 +629,6 @@ class Guest(XMLBuilder):
|
||||
|
||||
dev = VirtualConsoleDevice(self.conn)
|
||||
dev.type = dev.TYPE_PTY
|
||||
|
||||
if (self.os.is_x86() and
|
||||
self._os_object.supports_virtioconsole() and
|
||||
self.conn.check_support(
|
||||
self.conn.SUPPORT_CONN_VIRTIO_CONSOLE)):
|
||||
dev.target_type = "virtio"
|
||||
|
||||
self.add_device(dev)
|
||||
|
||||
def add_default_video_device(self):
|
||||
|
@ -433,16 +433,6 @@ class _OsVariant(object):
|
||||
return "localtime"
|
||||
return "utc"
|
||||
|
||||
def supports_virtioconsole(self):
|
||||
# We used to enable this for Fedora 18+, because systemd would
|
||||
# autostart a getty on /dev/hvc0 which made 'virsh console' work
|
||||
# out of the box for a login prompt. However now in Fedora
|
||||
# virtio-console is compiled as a module, and systemd doesn't
|
||||
# detect it in time to start a getty. So the benefit of using
|
||||
# it as the default is erased, and we reverted to this.
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1039742
|
||||
return False
|
||||
|
||||
def supports_virtiommio(self):
|
||||
return self._is_related_to(["fedora19"])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user