From f4edc32a5846f617be9781e52891be5617fd0595 Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Thu, 1 Sep 2011 18:02:09 -0700 Subject: Bugfix 7488: Configure Xen PV console hvc0 in Vyatta config file. Previously, the install-image program was adding a line to /etc/inittab in the image being installed. This change adds a console entry to the Vyatta config file instead. Because of that entry, the system automatically generates a console entry for hvc0 in /etc/inittab at boot time. I also removed the code in install-image that added a line to /etc/fstab to mount /proc/xen. This is no longer necessary because the /etc/init.d/xe-linux-distribution startup script now mounts /proc/xen. --- scripts/install/install-functions | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scripts/install/install-functions') diff --git a/scripts/install/install-functions b/scripts/install/install-functions index 5e24a921..0cca8944 100755 --- a/scripts/install/install-functions +++ b/scripts/install/install-functions @@ -230,6 +230,20 @@ select_drive () { echo } + +# Add a console entry to the config file. +# $1: Console device name (e.g. ttyS0) +# $2: Path to config file +# +add_console_entry () { + console_dev=$1 + config_file=$2 + sed -i -e "/console {/a \ \ + device $console_dev {\n\ + speed 9600\n\ + }" $config_file +} + # $1: user name # $2: encrypted password # $3: config file -- cgit v1.2.3