[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lrp of sorts
On Thu, 19 Feb 1998, Miki Shapiro wrote:
>Hi people.
>
>Im trying to assemble a linux router of sorts, mainly intended for home
>use for 2-4 host private nets, with ISDN or modem dialout capability,
>and ipchains to masqarade and do packet filters too. simple really.
>The reason I didnt use the standard lrp is because Im using 1.2 floppy
>drives (of which I have a nice pile) to minimize the cost of the box.
>lrp only issue for 1.44 drives. I decided Ill build my own diskettes
>from scratch. (and ofcourse, the learning experience :))
>
>My prob:
>To save up around 50K I killed LILO and did it with a kernel image and a
>rootfs image on the same diskette.
>I marked the offset of the rootfs image and instructed it to use a
>ramdisk (using the word you set with rdev).
>that worked. I think.
>The kernel boots, merrily tells me that the root filesystem WAS mounted
>successfully, and then for some reason it crashes saying it cannot run
>init.
>
>exact error message is "kernel panic - no init found. try
>passing init= option to the kernel"
>
>If I were running lilo I would know how to do that. which unfortunately
>Im not.
>
>The init executable is right there in /sbin. permissions are ser
>correctly. its executable.
>
>I tried this on 2 different comps and with 3 different diskettes, so
>this isnt a diskette prob nor a hardware prob (unless its one of those
>REALLY ugly coincidences)
>
>please do not refer me to the bootdisk-howto, because all it does is
>state flatly that init just runs (period) from /sbin.
>
>Other relevant documentation (that will solve my problem) I would be
>more than happy to know about.
>
>I would extremely appreciate the help.
>From the mouth of the penguin (/usr/src/linux/init/main.c 2.0.27):
if (!execute_command) {
execve("/etc/init",argv_init,envp_init);
execve("/bin/init",argv_init,envp_init);
execve("/sbin/init",argv_init,envp_init);
/* if this fails, fall through to original stuff */
Peter