PDA

View Full Version : [Bug ?!] Initrd and Linuxrc



Frunktz
01-22-2006, 10:52 AM
Hi!
I have a little question about booting of knoppix...
Well, start with theory of booting with Initrd:
- kernel load into memory initrd image
- decompress it
- execute LINUXRC (yes, must be an executable or shell file called linuxrc :) )
- after that or linuxrc call /sbin/init or it's called automatically, otherwise kernel panic

Pratically
- knoppix put in boot command line a line like init=/etc/init
After many test that I do, I see the param init (in this case /etc/init) it's execute only if present another param like root=/dev/ram0
I see /etc/init in INITRD of knoppix contain a small script like


/linuxrc
exec /sbin/init < /dev/console > /dev/console ...
Hi!
I have a little question about booting of knoppix...
Well, start with theory of booting with Initrd:
- kernel load into memory initrd image
- decompress it
- execute LINUXRC (yes, must be an executable or shell file called linuxrc :) )
- after that or linuxrc call /sbin/init or it's called automatically, otherwise kernel panic

Pratically
- knoppix put in boot command line a line like init=/etc/init
After many test that I do, I see the param init (in this case /etc/init) it's execute only if present another param like root=/dev/ram0
I see /etc/init in INITRD of knoppix contain a small script like


/linuxrc
exec /sbin/init < /dev/console > /dev/console ...

I think that script and relative boot parameter is useless, infact knoppix boot correctly without "init" file in /etc and without bootparam "init=/etc/init".

But..my question is: if it's useless, why is still present?
I'm forgot something?

Cheers

Frunktz
01-25-2006, 04:37 PM
I read that knoppix can use INITRAMFS..But minirt.gz isn't an archive of INITRAMFS

rwcitek
06-06-2006, 12:14 AM
I think that script and relative boot parameter is useless, infact knoppix boot correctly without "init" file in /etc and without bootparam "init=/etc/init".

Confirmed. Knoppix 4.0.2 will boot just fine without the "init=..."


But..my question is: if it's useless, why is still present?
I'm forgot something?
Probably a vestige. Naturally, you're free to take in out in your own remasters.

Regards,
- Robert
http://www.cwelug.org