mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
s390x: launch: direct: Use sclp as serial console on this architecture.
The same change to the direct backend as made to the libvirt backend in the previous commit.
This commit is contained in:
@@ -595,7 +595,18 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
|
||||
arg ("-device", VIRTIO_SERIAL);
|
||||
|
||||
/* Create the serial console. */
|
||||
#ifndef __s390x__
|
||||
arg ("-serial", "stdio");
|
||||
#else
|
||||
start_list ("-chardev") {
|
||||
append_list ("stdio");
|
||||
append_list ("id=charconsole0");
|
||||
} end_list ();
|
||||
start_list ("-device") {
|
||||
append_list ("sclpconsole");
|
||||
append_list ("chardev=charconsole0");
|
||||
} end_list ();
|
||||
#endif
|
||||
|
||||
if (g->verbose &&
|
||||
guestfs_int_qemu_supports_device (g, data->qemu_data,
|
||||
|
||||
Reference in New Issue
Block a user