<?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>4888</bug_id>
          
          <creation_ts>2013-07-22 02:47:48 +0000</creation_ts>
          <short_desc>Take into consideration that possibility of /var/lib on a separate writable media in case of a read-only rootfs</short_desc>
          <delta_ts>2013-08-27 04:31:27 +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>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M5</target_milestone>
          <dependson>4103</dependson>
          
          <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>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>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34740</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-07-22 02:47:48 +0000</bug_when>
    <thetext>Packages in our system may need to write to some directories to function correctly. In read-only rootfs, these directories should be made writable.

We should figure out a convenient and uniform way to handle such situations.

Some related bugs:
bug#4887 : openssh not working well with read-only rootfs
bug#4886 : /etc/rc5.d/S20irattach: /etc/sysconfig/irda: Read-only file system
bug#4885 :  lighttpd: /www directory should be writable in read-only rootfs

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35731</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-08-19 02:09:25 +0000</bug_when>
    <thetext>The only directory that is needed bind mount with tmpfs is /var/lib.

Other packages should be patched separately.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35901</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-08-26 06:31:25 +0000</bug_when>
    <thetext>Considering the overhead brought in by checking the /proc/mounts or /etc/fstab in each boot script, the READ_ONLY_ROOTFS value in /etc/default/rcS is still useful. However, we should at least add a check for conflicting configurations between /etc/fstab and /etc/default/rcS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35903</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-08-26 06:34:25 +0000</bug_when>
    <thetext>The only directory that is *necessary* to be bind mounted with tmpfs is /var/lib.
Other packages should fix themselves to fit for read-only rootfs.

So I changed the title of this bug to &quot;Take into consideration that possibility of /var/lib on a separate writable media in case of a read-only rootfs&quot;.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35938</commentid>
    <comment_count>4</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-08-27 04:31:27 +0000</bug_when>
    <thetext>merged into poky/master: 1dff47b097615771bc144f14c31ea137aa562c70

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

    </bug>

</bugzilla>