[OE-core] [PATCH] run-postinsts: Print message before running deferred postinst scripts
Burton, Ross
ross.burton at intel.com
Mon Dec 5 22:51:42 UTC 2016
On 5 December 2016 at 21:48, Haris Okanovic <haris.okanovic at ni.com> wrote:
> Opkg can defer running postinst scripts to first boot, which can take
> a while on some systems. The output of `opkg configure` (or whatever pm
> is used) is redirected to a file when logging is enabled
> (I.e. $POSTINST_LOGGING == 1), making the machine appear hung during
> this process. This change simply prints a wait message on the console
> to inform the user of this potentially long and silent operation so
> that they do not mistakenly reboot their machine.
>
This isn't opkg specific, all backends can do it.
> Why not simply `tee` the output instead?
> Tee might be provided by BusyBox in some distros, which may need to run
> update-alternatives in the very postinst scripts being executed by this
> process. It's therefore not safe to assume Tee (or any other packaged
> util) is available until the configure process finishes.
>
Are the alternatives not configured at rootfs time, so it should be fine to
run tee? (as if tee isn't safe, then neither is sed).
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20161205/7148ee3c/attachment-0002.html>
More information about the Openembedded-core
mailing list