<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4976</bug_id>
          
          <creation_ts>2013-08-03 17:52:52 +0000</creation_ts>
          <short_desc>Add flag for package to signal reboot is required after installation</short_desc>
          <delta_ts>2025-04-17 15:03:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>Package Management Issues</product>
          <component>package-management-issues</component>
          <version>1.4.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>   </status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bryan Evenson">evensonbryan</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35342</commentid>
    <comment_count>0</comment_count>
    <who name="Bryan Evenson">evensonbryan</who>
    <bug_when>2013-08-03 17:52:52 +0000</bug_when>
    <thetext>Some packages, when installed for the first time or when upgraded, require the system to be rebooted for the new package features to take affect.  At this time, there is no standard manner for a package to notify the system that it needs to be rebooted.  This enhancement would provide a consistent manner for the system to discover if a reboot is required after an upgrade or new package installation.

A suggested manner would be to add a flag, such as NEEDS_REBOOT or whatever name makes sense, to a recipe for a package that needs the system to reboot for changes to take affect.  If this flag is set, then the following text is added to the end of the package&apos;s pkg_postinst():

#!/bin/sh
touch /var/run/reboot-required
echo ${PN} &gt;&gt;/var/run/reboot-required.pkgs

The application responsible for package installation or upgrade can then check for the existence of /var/run/reboot-required to see if the system needs to be rebooted.  The /var/run/reboot-required.pkgs file provides a list of all packages requesting the reboot to show the end user if desired.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101673</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2025-04-17 15:03:22 +0000</bug_when>
    <thetext>Rather than a variable, a bbclass might be a easier way to indicate it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>