At Mon, 28 Dec 2009 17:29:22 -0600,
DJ Lucas wrote:
>
> On 12/28/2009 03:33 PM, Marc Ferland wrote:
> > The logo is displayed correctly during kernel booting (I used the "quiet"
> > option on the kernel cmd line). But when I switch to the real rootfs and
> > start /sbin/init I see all the messages from the different init.d services.
> >
> > Is there a way to remove these messages? Maybe by redirecting them in a
> > log file?
> >
> >
> Not a built-in way in the scripts, however, take a look at the runlevel
> control script (/etc/rc.d/init.d/rc) and maybe you could redirect it to
> null there. If you want logging, the root filesystem is not writable in
> sysinit until after the 6th script (mountfs) has ran, so I'm not sure
> exactly how to deal with it in your setup. I kinda doubt that the
> initramfs can be abused, but maybe. Take a look at the rc script in the
> contrib directory for the LSB-V3 bootscripts (warning: I never finished
> them so they might be ugly to read...also the entire set was broken
> because of changes to make them not distro specific which I also hadn't
> bothered to finish...really I will). A tempfs is mounted first thing to
> enable boot logging, but you need to take into account the entire script
> as I put in a couple of simple tricks (which escape me ATM) to get the
> time correct for the log files, and then a dump and then switch to real
> log files after sysinit finishes.
>
Great! Only a couple of messages left!
Like you said, I replaced the line that says:
${i} start
with
${i} start &> /dev/null
Thanks,
Marc
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page