From: Neuer User <auslands-kv@gmx.de>
To: yocto@yoctoproject.org
Subject: Re: Problems with postinstall
Date: Fri, 06 Jun 2014 14:37:56 +0200 [thread overview]
Message-ID: <lmscn4$89g$1@ger.gmane.org> (raw)
In-Reply-To: <CAJTo0La2RQgjFy2Y-SZG3P7LvOu9fB9n=NqA1p0Fc3WsnJyEVw@mail.gmail.com>
Am 06.06.2014 14:31, schrieb Burton, Ross:
> On 6 June 2014 12:08, Neuer User <auslands-kv@gmx.de> wrote:
>>> The postinst is executed by the package manager when the package is
>>> installed. If that installation takes place during do_rootfs, ${D}
>>> will refer to the rootfs directory for the image being built and ${S}
>>> will probably refer to something else to do with the image recipe but
>>> I'm not entirely sure on the details. If the installation takes place
>>> on the device, or the postinst is delayed until the first boot, ${D}
>>> and ${S} will not be set.
>>>
>>> Hope this helps,
>>>
>>
>> So, I guess there are now two possibilities:
>> a.) The postinstall is not done at all.
>> b.) The postinstall is done, but before the other packages are
>> installed, which overwrite the files again. Is this possible? If yes,
>> howto specify that this postinstall should really be done last of all?
>
> Basically a postinstall is *not* the way of doing this. You can't
> control when it runs and when it does, you can't get to the files you
> want to install.
>
> If the files are installed by other packages then use a bbappend to
> change those files. If nothing installs them already, write a recipe
> to install them. If there are changes that can only be done at rootfs
> time, then use a rootfs postproces command.
>
> Ross
>
Thanks Ross
I guess the "rootfs postprocess command" is the way to go.
I have already separated the files into new files (which get installed
as a normal install process by that package) and files that overwrite
other package files.
I guess, I could for most (but not all) files add a bbappend to the
relevant original package, but it would be more complicated than doing
it all together at rootfs postprocess.
Thanks for all the help. I will try the rootfs postprocess today :-)
Cheers
Michael
prev parent reply other threads:[~2014-06-06 12:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-05 10:44 Problems with postinstall Neuer User
2014-06-06 6:16 ` Neuer User
2014-06-06 7:11 ` Søren Holm
2014-06-06 10:54 ` Paul Barker
2014-06-06 11:08 ` Neuer User
2014-06-06 11:19 ` Jacob Kroon
2014-06-06 11:24 ` Neuer User
2014-06-06 12:31 ` Burton, Ross
2014-06-06 12:37 ` Neuer User [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='lmscn4$89g$1@ger.gmane.org' \
--to=auslands-kv@gmx.de \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.