[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] Support for %Post section of .spec file?
From: |
Stuart Hughes |
Subject: |
Re: [Ltib] Support for %Post section of .spec file? |
Date: |
Tue, 16 Sep 2008 18:47:46 +0100 |
On Tue, 2008-09-16 at 17:36 +0000, address@hidden wrote:
> Hi Stuart,
>
> Thanks for the quick response. I thought that the point of my patch was
> to ensure that the %post section does execute on the machine that
> installs the RPM, but maybe I'm just confused. It seems to do that
> for me on my system, but I suppose it could be that I have a special case.
You can't run these %post things on the host. Normally they do
target-ish things.
>
> If I have different packages that want to add things to rc.local,
> how can the packages automatically edit the rc.local file and
> what do I need to do (if anything) to get them to run
> when my target system boots?
They can't easily, you have to aggregate the set of changes into one
rc.local, or call out to scripts. This is a weakness of the current
scheme. rc.local is run last of all the init startup scripts, so you
can:
$ mkdir merge
$ cp rootfs/etc/rc.d/rc.local merge
/// make your changes/additions
$ ./ltib
Regards, Stuart
>
> Thanks again, LTIB is great!
>
> Chip Webb
>