When does the linuxrc script execute?
I downloaded the source code of linux-2.2.14 and simple-ramdisk.image.gz from ftp://ftp.denx.de/pub/LinuxPPC/usr/src/.
In ramdisk, there is a file named /linuxrc which includes some shell scripts, but why it is NOT executed when system boot?
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Hi,
Quoted 3 lines · qiuqingjun
I downloaded the source code of linux-2.2.14 and simple-ramdisk.image.gz from ftp://ftp.denx.de/pub/LinuxPPC/usr/src/.
In ramdisk, there is a file named /linuxrc which includes some shell scripts, but why it is NOT executed when system boot?
could you be more specific - your system can't really boot without /linuxrc, because shell is called in it.
So you system doesn't boot I guess? If I'm correct, where does it stop?
BTW. linuxrc is executed when kernel preparing namespace, that is after all initializations, preparing devices... it is in 'init' thread.
--
Ah, kakor pot je nase zivljenje,
temna, zavita, LP, Jure
brez dalj -
V prsi zabodeno hrepenenje,
negativni total.
--
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 4 lines
I downloaded the source code of linux-2.2.14 and simple-ramdisk.image.gz from ftp://ftp.denx.de/pub/LinuxPPC/usr/src/.
In ramdisk, there is a file named /linuxrc which includes some shell scripts, but why it is NOT executed when system boot?
Check the conditions WHEN a /linuxrc file gets executed, and compare with your kernel configuration and start procedure. There will be some difference.
Wolfgang Denk
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Hi,
Quoted 2 lines
could you be more specific - your system can't really boot without /linuxrc, because shell is called in it.
You are wrong. It depends on the kernel configuration and some other things.
Quoted 2 lines
BTW. linuxrc is executed when kernel preparing namespace, that is after all initializations, preparing devices... it is in 'init' thread.
If you run in a "standalone shell" environment, there is nothing that will even bother to check if a /linuxrc exists.
Wolfgang Denk
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/