From c62ca5f891ab4c97e15ff00d07864537243f302d Mon Sep 17 00:00:00 2001 From: Ivan Mikushin Date: Tue, 25 Aug 2015 17:01:13 +0500 Subject: [PATCH] choose appropriate console for install type tty0 or ttyS0 --- scripts/installer/lay-down-os | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/installer/lay-down-os b/scripts/installer/lay-down-os index 6136996f..7433823f 100755 --- a/scripts/installer/lay-down-os +++ b/scripts/installer/lay-down-os @@ -21,6 +21,7 @@ done DIST=${DIST:-/dist} CLOUD_CONFIG=${CLOUD_CONFIG:-/scripts/conf/empty.yml} +CONSOLE=tty0 BASE_DIR="/mnt/new_img" # TODO: Change this to a number so that users can specify. # Will need to make it so that our builds and packer APIs remain consistent. @@ -80,7 +81,7 @@ default ros label ros kernel /boot/vmlinuz-${VERSION}-rancheros initrd /boot/initrd-${VERSION}-rancheros - append ${append_line} console=ttyS0 console=tty0 + append ${append_line} console=${CONSOLE} EOF @@ -90,7 +91,7 @@ cat >>${extlinux_conf} <> ${grub_file}<