mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
libxl+xend: use correct paths for PV console when running bootloader
Makes "{xl,xm} create -c GUEST" work again with pygrub in interactive
mode which was broken by 21994:2e08ec0028e4
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
fa274ba294
commit
5545b07a5c
3 files changed
+3
-3
No files matched your search
@@ -77,7 +77,7 @@ def diagnose(dom):
|
||||
def diagnose_console():
|
||||
port = xstransact.Read(dompath + '/console/port')
|
||||
ringref = xstransact.Read(dompath + '/console/ring-ref')
|
||||
tty = xstransact.Read(dompath + '/serial/0/tty')
|
||||
tty = xstransact.Read(dompath + '/console/tty')
|
||||
|
||||
if not port:
|
||||
print "Console port is missing; Xend has failed."
|
||||
|
||||
@@ -85,7 +85,7 @@ def bootloader(blexec, disk, dom, quiet = False, blargs = '', kernel = '',
|
||||
fcntl.fcntl(m1, fcntl.F_SETFL, os.O_NDELAY)
|
||||
|
||||
slavename = ptsname.ptsname(m1)
|
||||
dom.storeDom("serial/0/tty", slavename)
|
||||
dom.storeDom("console/tty", slavename)
|
||||
|
||||
# Release the domain lock here, because we definitely don't want
|
||||
# a stuck bootloader to deny service to other xend clients.
|
||||
|
||||