<?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>3697</bug_id>
          
          <creation_ts>2013-01-10 03:23:45 +0000</creation_ts>
          <short_desc>&apos;/etc/default/rcS&apos; missing on targets with &apos;poky-tiny&apos; distro feature</short_desc>
          <delta_ts>2013-03-01 09:49:42 +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>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.4 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>dvhart</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhenfeng.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>28694</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-01-10 03:23:45 +0000</bug_when>
    <thetext>/etc/init.d/hwclock.sh: .: line 23: can&apos;t open &apos;/etc/default/rcS&apos;

Here&apos;s the root cause:
sysvinit provides /etc/default/rcS.
initscripts and busybox both need /etc/default/rcS.
But there are no dependencies among them. (Of course there should not be.)

So, a seperation of rcS-default from sysvinit is necessary for initscripts and busybox to work correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28726</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-01-10 15:50:12 +0000</bug_when>
    <thetext>poky-tiny intentionally does not support system v init. I think the question we need to ask here is why is hwclock.sh getting installed in poky-tiny.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28743</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-01-11 02:16:35 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; poky-tiny intentionally does not support system v init. I think the question
&gt; we need to ask here is why is hwclock.sh getting installed in poky-tiny.

hwclock.sh is provided by busybox.

The above error was encountered when I was exploring poky-tiny.
After I looked into it a little bit, I found it was actually a dependency issue.

As stated above, there are no dependencies among sysvinit, initscripts and busybox. But initscripts and busybox both need /etc/default/rcS which is currently provided by sysvinit.

As I think there shouldn&apos;t be any dependencies between these scripts (because the init system can be replaced, and in this case, by tiny-init), I&apos;d like to seperate rcS-default from sysvinit and let initscripts and busybox depend on it.

What do you think about it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28776</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-01-11 16:38:00 +0000</bug_when>
    <thetext>Interesting. Have you determined why hwclock.sh needs /etc/default/rcS? That might need to be established first.

Are the initscripts useful without sysvinit?

Saul, what are your thoughts on the interdependence of these packages?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29225</commentid>
    <comment_count>4</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-01-28 04:52:52 +0000</bug_when>
    <thetext>Now that initscripts will not be built unless the init manager is sysvinit. I think we could just fix the hwclock.sh script by checking the existence of /etc/default/rcS before souring it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29905</commentid>
    <comment_count>5</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-02-18 07:39:12 +0000</bug_when>
    <thetext>It seems more reasonable to just check the existence of /etc/default/rcS before sourcing it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30059</commentid>
    <comment_count>6</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-02-25 03:26:50 +0000</bug_when>
    <thetext>merged into poky/master: b1c887277c67a9a0fb08162edc4cc9aeeb8f400d

http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=416519ec595f59ebeafb95bed2546635cad41559</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30314</commentid>
    <comment_count>7</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-03-01 09:49:42 +0000</bug_when>
    <thetext>Verified with master branch: 0bedc0b80d9b46cbbf4a2c5e120a6aa52cbc7c2e
Run &quot;/etc/init.d/hwclock.sh restart&quot; , there is no such error.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>