So I guess in my case it is more complicated, however as an example.
Say I want to customze the background of plymouth charge on the livecd-
Change the settings to
I can do this 3 ways.
a) rebuild the plymouth-theme-charge package.
b) create a simple package with a rpm trigger or rpm post script to
c) do it via the post installation
All 3 ways will work, easiest should be c). However even though I can
update the initramfs in %post, it is not used since the initrd0.img is
created prior to the post install scripts getting run.
I totally agree %post should run as last, however in the case of a live
image creation the initrd0.img gets copied out of the install
environment prior to %post getting run. Kind of defeats the purpose of
%post, if I am not mistaken.
Perhaps the patch I posted is not the best solution, but I think it
should be possible to manipulate the contents of initrd0.img from post.
On 02/12/2010 10:09 AM, James Heather wrote:
I'm intrigued as to why you want to do it.
Intuitively, if the initramfs copying process is as independent of the
%post scripts as you suggest, then it's not obvious why it would be of
any benefit to switch the order round.
On Fri, 2010-02-12 at 09:04 +0000, Grant Williamson wrote:
> I agree with you on that, however in a livecd image creation
> process, the initramfs is being copied outside the normal running
> environment. So I would say in this case the contract does not apply in
> the same sense.
> On 02/12/2010 08:11 AM, Jeremy Katz wrote:
> > On Thu, Feb 11, 2010 at 2:18 PM, Grant Williamson<traxtopel(a)gmail.com
> >> I am wondering why the initramfs is copied prior to the post install
> >> scripts being run.
> >> In my case I want to customize this.
> >> The following patch allows me to do this, I am curious are there are
> >> issues doing this.
> > There's a very big issue. It means that %post isn't the last thing
> > that's run. One of the contracts of kickstart is that %post is the
> > last thing that runs.
> > - Jeremy
> > --
> > livecd mailing list
> > livecd(a)lists.fedoraproject.org <mailto:firstname.lastname@example.org>
> > https://admin.fedoraproject.org/mailman/listinfo/livecd
> livecd mailing list
> livecd(a)lists.fedoraproject.org <mailto:email@example.com>
livecd mailing list