Logging bootscript output
dbn.lists at gmail.com
Thu Feb 22 13:28:18 PST 2007
On 2/22/07, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:
> Vladimir A. Pavlov wrote:
> > Just a few notes.
> Thanks for the input.
> > 2. May be it would be better if /etc/rc.d/rc (I mean the main rc
> > script. I don't remember how it's called in LFS) will run each
> > bootscript using
> > script_name 2>&1 |tee -a /var/log/bootlog
> > rather then simply
> > script_name
> I thought about this, but it is possible that /var is not mounted early
> in the boot process, however using my script to buffer messages might work:
> script_name 2>&1 |tee /dev/bootlog
Right. More importantly, /var is read only early in the boot process
unless you booted with rw. Only /dev can be guaranteed to be writable
early. Alexander pointed this out to me when I was having trouble
getting the userspace daemon started for my ipw3945 wireless card.
More information about the lfs-dev