[PATCH] Add warning `init=' to init/main.c
authorAvery, Brian <b.avery@hp.com>
Tue, 6 Sep 2005 22:16:56 +0000 (15:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:23 +0000 (16:57 -0700)
commitc1d7ef70a71eb54fb389a9a411d331661be73056
tree5034edc010e2ad898f1fe81a0937352aae95de93
parent8fc2751beb0941966d3a97b26544e8585e428c08
[PATCH] Add warning `init=' to init/main.c

I passed init=/mylinuxrc to the kernel on the command line.  The kernel
silently dropped down to exec /sbin/init.  It turned out that /mylinuxrc
had improper permissions.  Without any warning message from the kernel that
something was wrong it took awhile to find the issue.  The patch below adds
a warning.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
init/main.c