ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] [LTIB] Modifying rc.local


From: Stuart Hughes
Subject: Re: [Ltib] [LTIB] Modifying rc.local
Date: Wed, 21 Mar 2012 09:21:56 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.27) Gecko/20120216 Lightning/1.0b2 Thunderbird/3.1.19

Hi Doug,

Please make the checks Peter suggests.

When you touch a file under the merge directory, you should see the merge package re-build and so update the rootfs. If this is not happening it could be a bug or some other issue. If it persists, please try to give a simple test case so that it can be investigated.

Regards, Stuart

On 20/03/12 13:51, Douglas Peterson wrote:
The merge directory is how I was modifying rc.local originally. This had the 
problem that what ended up in the rootfs after running LTIB was not always the 
one in the merge directory. To guarantee that rootfs contained the correct 
file, I would delete the entire rootfs before building (I probably could have 
deleted only the rc.local file, but there was another reason I wiped the entire 
directory--long story, which has been remedied).



-----Original Message-----
From: Stuart Hughes [mailto:address@hidden
Sent: Tuesday, March 20, 2012 12:29 AM
To: Peter Barada
Cc: Douglas Peterson; address@hidden
Subject: Re: [Ltib] [LTIB] Modifying rc.local

Hi Peter,

The docs could do with maintenance, but as I've said before at the
moment I have almost zero time available.

Also a better way to override rc.local is to create a merge directory
under your config/platform/_target_ directory, e.g

config/platform/_target_/merge/etc/rc.d/rc.local  (there are some
examples on other platforms such as mpc8349itx).

There's a note about this in the FAQ under:

---+ Root Filesystems
---++ Can I add files to the target root file system without creating a
package

Regards, Stuart


On 03/19/2012 11:26 PM, Peter Barada wrote:
On 03/19/2012 07:14 PM, Douglas Peterson wrote:
That shows two packages:
skell-1.19-3
sysconfig-1.2-2

And sure enough, sysconfig.spec writes the rogue rc.local file.

So it appears that if we want to modify rc.local, we need to use our own 
sysconfig.spec.

Thanks Peter,
Anytime.

Stuart, would this be useful to put into the FAQ somewhere?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]