<?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>4802</bug_id>
          
          <creation_ts>2013-07-02 10:48:23 +0000</creation_ts>
          <short_desc>Busybox on target upgrade fails if upgrading from &apos;one-binary&apos; version to &apos;two-binary&apos; version</short_desc>
          <delta_ts>2013-07-09 03:03:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>Martin.Jansa</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34277</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-07-02 10:48:23 +0000</bug_when>
    <thetext>First of all, thanks Martin for pointing it out.

We&apos;ve made busybox default to two binaries, busybox.nosuid and busybox.suid.
We also add a variable &apos;BUSYBOX_SPLIT_SUID‘ to control its behavior.
Now that we can have a busybox version with only one binary (/bin/busybox) or we can have a version with two binaries (/bin/busybox.nosuid and /bin/busybox.suid), the on-device upgrade issue starts to become a problem.

We have to support four upgrade paths:
A: busybox[split]
B: busybox[no split]

A --(upgrade)--&gt; B
B --(upgrade)--&gt; A
A --(upgrade)--&gt; A
B --(upgrade)--&gt; B

This problem can be more complex if we take into consideration the upgrade issue of other related packages, for example, busybox-syslog.

The goal here is to make any upgrade path above successful.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34405</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-07-09 03:03:31 +0000</bug_when>
    <thetext>merged into poky/master: cb534214286cb59f1ac377b6f1643c923c1289b1

http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=4e571e97750f3ac6a62cd0d2d10c08be98230630</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>