Matthew Burgess wrote:
> On 02/08/2011 21:07, xinglp wrote:
>> 2011/8/2 Bruce Dubbs<bruce.du...@gmail.com>:
>>> I have made a very large, invasive change to LFS.  All the bootscripts
>>> have been rewritten.
>>>
>>>   From the change log:
>>>
>>> [bdubbs] - Rewrite bootscripts and Chaper 7.
>>> o Make scripts compatible with initd format (see BLFS).
>>> o Move functions and services to /lib/boot.
>>> o Log boot messages to /run/var/bootlog.
>> The dir /run/var/ was not always available, I saw many error messages
>> during shutdown and reboot.
> 
> Just to say 'me too' here, I see it complaining about /run/var/bootlog 
> not being found.  It looks like boot_mesg is being called in S80swap and 
> S90localnet when S70mountfs has already unmounted /run.

I didn't test the shutdown.  Sorry.

I guess a workaround for now is to leave /run out of fstab.  The man 
page says:

  -a     All of the file systems described in /etc/mtab  are  unmounted.
(With  umount version 2.7 and later: the proc filesystem is not
unmounted.)

I could ask that the util-linux guys omit /run also.

Alternatively, we could do something like:

   [ -d /run/var ] || return

in the appropriate places in functions so the attempt to write is 
skipped if the /run/var directory is missing.

What do you think?

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to