<?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>4103</bug_id>
          
          <creation_ts>2013-03-25 16:13:57 +0000</creation_ts>
          <short_desc>Stop using linux live and replace with read-only rootfs</short_desc>
          <delta_ts>2013-08-19 01:57:41 +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>deployment</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</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>enhancement</bug_severity>
          <target_milestone>1.5 M4</target_milestone>
          
          <blocked>4106</blocked>
    
    <blocked>4344</blocked>
    
    <blocked>4883</blocked>
    
    <blocked>4885</blocked>
    
    <blocked>4886</blocked>
    
    <blocked>4887</blocked>
    
    <blocked>4888</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jason Wessel">jason.wessel</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>Qi.Chen</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>31131</commentid>
    <comment_count>0</comment_count>
    <who name="Jason Wessel">jason.wessel</who>
    <bug_when>2013-03-25 16:13:57 +0000</bug_when>
    <thetext>Using the boot loader plus an initrd and a kernel with a unionfs like feature compiled it needs to be possible to do the following:
   * Boot the kernel with the initrd
      * The initrd will contain an opimimized boot script and any
        kernel modules needed for the boot media device
      * The initrd will contain a static busybox with pivot_root
   * The initrd script will check all the labels on the boot media to
     find the one that it needs to mount
   * The initrd script will mount the boot media read-only
   * The initrd script will pivot to the boot media
   * The boot media init must account for the fact it was booted read-only and
     correctly bind mount any part of the file system that needs to be read-write
      * Alternatively it could re-mount things read-write if it is not an ISOFS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34044</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-06-21 10:57:02 +0000</bug_when>
    <thetext>
(In reply to comment #0)

&gt;      correctly bind mount any part of the file system that needs to be
&gt; read-write

It&apos;s really hard to determine which parts of the system need to be &apos;read-write&apos;.

When the user takes a tour in the liveCD distro, every part of the system is possible to be written to, his/her home directory, the /etc/ directory and the /var/ directory.

Or maybe the user wants to make a directory under /.

So I think maybe we should still use the &apos;union mount&apos; method.

Please see bug#4761 for some additional info.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34624</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-07-16 18:47:59 +0000</bug_when>
    <thetext>We should review all packages and recipes and ensure that they do not write to the Read-Only FS, at this point we should not worry about persistent data, so for home directory example it would just be linked to /tmp which is reall /var/tmp and on ramfs.

We should find any packages that write into /etc and patch that for the Read-Only FS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34632</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-07-17 08:26:03 +0000</bug_when>
    <thetext>The goal is to make live images workable even if a unionfs like feature is not compiled into kernel. Right?

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34741</commentid>
    <comment_count>4</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-07-22 02:49:40 +0000</bug_when>
    <thetext>Add several bugs to the block list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35725</commentid>
    <comment_count>5</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-08-19 01:57:41 +0000</bug_when>
    <thetext>merged into poky/master: 2b204500bd20621d29762f23204a000eadc88e00</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>