View Single Post

   
  #7 (permalink)  
Old 05-13-2008, 06:12 PM
Mark Madsen
 
Posts: n/a
Default Re: What is equivalent to /etc/rc.sh ?

On Tue, 13 May 2008 10:13:57 -0400, Old Man wrote:

> Steven Woody wrote:
>
>> I doubt these things can be done in rc.local since rc.local will be
>> executed very later in boot time. What I want to do in /etc/rc.sh is
>> to prepare stuffs for a tmps, my /var is actually a symbol link
>> pointing to /tmpfs/var. So, you see, if I do 'mkdir /tmpfs/var' in
>> rc.local, then any program running before /tmpfs/var and depends on /
>> var will failed to run, it it?
>>
>> Thanks.

>
> Pretty sure that if you just put the entry you need in /etc/fstab, then
> rc.S will mount it before anything needs it. (It will mount it when it
> would mount /var from an ordinary partition. Read rc.S, esp. at line
> 297) I mount /tmp using tmpfs and do nothing beyond having it included
> in fstab.


Having just suffered from an auto-mangled fstab, I can confirm that the
boot process fails very early on under these circumstances.
Reply With Quote