From 06db61e5d55112412adfc28670d67bf45add6504 Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 19 Dec 2005 17:17:04 +0000 Subject: [PATCH] 2005-12-19 17:17:04 by steve Fixup the initial console, added reference too. --- xen-create-image | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/xen-create-image b/xen-create-image index 9dcd563..6aaf1d0 100755 --- a/xen-create-image +++ b/xen-create-image @@ -190,7 +190,7 @@ broadcast = 255.255.255.0 -- http://www.steve.org.uk/ - $Id: xen-create-image,v 1.23 2005-12-19 11:11:06 steve Exp $ + $Id: xen-create-image,v 1.24 2005-12-19 17:17:04 steve Exp $ =cut @@ -905,12 +905,25 @@ sub fixupInittab { if ( $line =~ /^1/ ) { - # NOP - leave line unchanged. + # + # Leave line unchanged - but change 'tty1' to 'console'. + # + if ( $line =~ /(.*) tty[0-9]/ ) + { + $line = $1 . " console"; + } + + # + # Reference: + # http://wiki.xensource.com/xenwiki/DebianSarge + # } else { - # Otherwise comment out the line, we don't need multiple - # terminals since we can only access one. + # + # Otherwise comment out the line, we don't need multiple + # terminals since we can only access one. + # $line = "#" . $line; } }