summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott James Remnant <scott@ubuntu.com>2010-03-26 14:33:44 +0000
committermaximilian attems <maks@debian.org>2010-03-27 16:32:33 +0100
commit72f9d99901161b02513153eb3e587553fb21165e (patch)
treeec9742528027a9d52f068b84fa9d932155b52f1a
parentc713fd9872c4b917d89df89ddbc6c471d52c67d8 (diff)
downloadinitramfs-tools-72f9d99901161b02513153eb3e587553fb21165e.tar.gz
initramfs-tools-72f9d99901161b02513153eb3e587553fb21165e.zip
init: load the netconsole module with netconsole bootarg
[ merge from 0.92bubuntu71 ] Signed-off-by: maximilian attems <maks@debian.org>
-rwxr-xr-xinit5
1 files changed, 5 insertions, 0 deletions
diff --git a/init b/init
index 05853b4..f5b0646 100755
--- a/init
+++ b/init
@@ -169,6 +169,9 @@ for x in $(cat /proc/cmdline); do
blacklist=*)
blacklist=${x#blacklist=}
;;
+ netconsole=*)
+ netconsole=${x#netconsole=}
+ ;;
esac
done
@@ -177,6 +180,8 @@ if [ -n "${noresume}" ]; then
unset resume
fi
+[ -n "${netconsole}" ] && modprobe netconsole netconsole="${netconsole}"
+
maybe_break top
# Don't do log messages here to avoid confusing usplash