From 8b41c641e3d71765a2dd2b37f2bc07955c0b2c23 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 8 Mar 2008 21:19:02 +0000 Subject: initramfs-uniboot: Add new global var - CONSOLE - and start to use it as output device. * This is to workaround bogus console= passed in by bootldr. --- packages/initrdscripts/files/init.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'packages/initrdscripts/files') diff --git a/packages/initrdscripts/files/init.sh b/packages/initrdscripts/files/init.sh index e250e3928a..c3b4336e40 100644 --- a/packages/initrdscripts/files/init.sh +++ b/packages/initrdscripts/files/init.sh @@ -52,8 +52,8 @@ boot_root() { } fatal() { - echo $1 - echo + echo $1 >$CONSOLE + echo >$CONSOLE exec sh } @@ -61,6 +61,9 @@ fatal() { echo "Starting initramfs boot..." early_setup load_modules '0*' + +[ -z "$CONSOLE" ] && CONSOLE="/dev/console" + read_args if [ -n "$rootdelay" ]; then -- cgit v1.2.3