Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Bryan Evenson <bevenson@melinkcorp.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: opkg: How to make package signal reboot required?
Date: Thu, 01 Aug 2013 09:44:50 +0100	[thread overview]
Message-ID: <1728270.BLIjGjro2R@helios> (raw)
In-Reply-To: <91586D499ADFD74FBCFB8425266A5DE40153ADA9D291@pluto.melinkcorp.local>

Hi Bryan,

On Wednesday 31 July 2013 21:28:50 Bryan Evenson wrote:
> I have a package that I created for my setup which, when upgraded, will
> require a system reboot.  Is there a general flag/setting that already
> exists to put in my Bitbake recipe to signal that the package requires a
> reboot?  If so, does it just set a flag that a reboot is required or does
> it force a reboot?

It would be worth checking to see if the package manager has any intrinsic 
support for this kind of thing; FWIW I don't know that the ones that we use do 
(at least, we have no out-of-the-box integration for such functionality - I 
know some package managers have "delay until end" functionality for things 
like ldconfig and man page indexes, but we don't currently support this as far 
as I know).

One approach (untested) that could work now however would be to define a 
postinstall script for the package that would start another script in the 
background or via cron; the latter script would then wait until the package 
manager finished and then do whatever was necessary to restart the machine.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


  reply	other threads:[~2013-08-01  8:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-01  1:28 opkg: How to make package signal reboot required? Bryan Evenson
2013-08-01  8:44 ` Paul Eggleton [this message]
2013-08-01 10:32 ` Martin Jansa
2013-08-01 12:27   ` Bryan Evenson
2013-08-02 11:02     ` Paul Eggleton
2013-08-02 11:05   ` Paul Eggleton

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=1728270.BLIjGjro2R@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=bevenson@melinkcorp.com \
    --cc=openembedded-devel@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox