<?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>6376</bug_id>
          
          <creation_ts>2014-05-27 03:34:28 +0000</creation_ts>
          <short_desc>update-rc.d cannot handle priority of &apos;08&apos; or &apos;09&apos; well</short_desc>
          <delta_ts>2014-10-09 14:28:19 +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.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Costin">costin.c.constantin</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43593</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-05-27 03:34:28 +0000</bug_when>
    <thetext>If we specify a priority of &apos;08&apos; or &apos;09&apos; in INITSCRIPT_PARAMS like below, the priority would not end up correct in our target.

INITSCRIPT_PARAMS = &quot;start 09 S . stop 90 0 6 .&quot;

(Obviously, the above is a valid statement.)

The problem is that the update-rc.d treats numbers begin with &apos;0&apos; as octal numbers.

This needs to be fixed.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43713</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-06-03 01:45:18 +0000</bug_when>
    <thetext>Module: openembedded-core.git
Branch: master
Commit: 675fd834b9ed696cd87809830d57d3da083580d3
URL:    http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=675fd834b9ed696cd87809830d57d3da083580d3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45154</commentid>
    <comment_count>2</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2014-08-18 13:10:22 +0000</bug_when>
    <thetext>Hello Chen,

I know this might sound stupid, but where exactly you inserted the INITSCRIPT_PARAMS variable and what steps did you perform to create the environment for this scenario?

Thank you,

Costin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45161</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-08-19 02:31:56 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Hello Chen,
&gt; 
&gt; I know this might sound stupid, but where exactly you inserted the
&gt; INITSCRIPT_PARAMS variable and what steps did you perform to create the
&gt; environment for this scenario?
&gt; 
&gt; Thank you,
&gt; 
&gt; Costin

I created a new recipe with a simple init script, and then set INITSCRIPT_PARAMS to &quot;start 09 S . stop 90 0 6 .&quot;.

// Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46239</commentid>
    <comment_count>4</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2014-10-09 14:28:19 +0000</bug_when>
    <thetext>Hello,

I managed to test this bug (thanks for help Chen) and everything is fine. I will mark it as verified.

However, I would like to share how  I did it for future reference:

1) modify the meta/recipes-connectivity/openssh/openssh_6.6p1.bb recipe changing 

INITSCRIPT_PARAMS_${PN}-sshd = &quot;defaults 9&quot; to INITSCRIPT_PARAMS_${PN}-sshd = &quot;defaults 09&quot;

2) in local.conf:
EXTRA_IMAGE_FEATURES = &quot;debug-tweaks ssh-server-openssh&quot;
MACHINE = &quot;qemux86-64&quot;

3) bitbake core-image-minimal

4) runqemu qemux86-64 core-image-minimal
ps | grep ssh  (ssh should exist)
ls /etc/rc*   (and a link to sshd should be present)

poky: 5367855fe56db0c09b8fa7bb423b9de18d11eecc

Costin</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>