mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
ppc64: Use console=hvc0 console=ttyS0.
console=ttyS0 used to work. Now it's broken again, and the correct setting appears to be console=hvc0. Since we can pass multiple console settings, do that to try and catch the right console.
This commit is contained in:
10
src/launch.c
10
src/launch.c
@@ -302,10 +302,12 @@ guestfs__config (guestfs_h *g,
|
||||
* Note that this returns a newly allocated buffer which must be freed
|
||||
* by the caller.
|
||||
*/
|
||||
#if defined(__arm__)
|
||||
#define SERIAL_CONSOLE "ttyAMA0"
|
||||
#if defined(__powerpc64__)
|
||||
#define SERIAL_CONSOLE "console=hvc0 console=ttyS0"
|
||||
#elif defined(__arm__)
|
||||
#define SERIAL_CONSOLE "console=ttyAMA0"
|
||||
#else
|
||||
#define SERIAL_CONSOLE "ttyS0"
|
||||
#define SERIAL_CONSOLE "console=ttyS0"
|
||||
#endif
|
||||
|
||||
char *
|
||||
@@ -339,7 +341,7 @@ guestfs___appliance_command_line (guestfs_h *g, const char *appliance_dev,
|
||||
#ifdef __i386__
|
||||
" noapic" /* workaround for RHBZ#857026 */
|
||||
#endif
|
||||
" console=" SERIAL_CONSOLE /* serial console */
|
||||
" " SERIAL_CONSOLE /* serial console */
|
||||
" udevtimeout=600" /* good for very slow systems (RHBZ#480319) */
|
||||
" no_timer_check" /* fix for RHBZ#502058 */
|
||||
"%s" /* lpj */
|
||||
|
||||
Reference in New Issue
Block a user