<?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>5624</bug_id>
          
          <creation_ts>2013-12-03 10:02:31 +0000</creation_ts>
          <short_desc>dhcp-client: invoke dhclient-script failed on Read-only file system</short_desc>
          <delta_ts>2014-03-20 06:18:03 +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.6</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.6 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongxu Jia">hongxu.jia</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>hongxu.jia</cc>
    
    <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>39196</commentid>
    <comment_count>0</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-12-03 10:02:31 +0000</bug_when>
    <thetext>1. vim local.conf
EXTRA_IMAGE_FEATURES += &quot;read-only-rootfs&quot;
IMAGE_FSTYPES += &quot;live&quot;
IMAGE_INSTALL += &quot;dhcp-client&quot;
MACHINE = &quot;qemux86-64&quot;

2. bitbake core-image-sato

3. start qemu with iso image:

$ qemu-system-x86_64 -nographic -boot d -drive file=core-image-sato-qemux86.iso

Click--&gt;Serial console boot
...
/sbin/dhclient-script: line 30: /etc/resolv.conf.dhclient: Read-only file system
chmod: cannot access &apos;/etc/resolv.conf.dhclient&apos;: No such file or directory
/sbin/dhclient-script: line 41: /etc/resolv.conf.dhclient: Read-only file system
mv: cannot stat &apos;/etc/resolv.conf.dhclient&apos;: No such file or directory
done.
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40878</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-03-05 09:17:19 +0000</bug_when>
    <thetext>In read-only file system, &apos;/etc&apos; is on the readonly partition,
and &apos;/etc/resolv.conf&apos; is symlinked to a separate writable
partition.

In this situation, we should use shell variable to instead of
the temp file &apos;/etc/resolv.conf.dhclient&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41483</commentid>
    <comment_count>2</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-03-20 06:18:03 +0000</bug_when>
    <thetext>Merged into master:

From OE-Core rev: df793f4356b411cbb92445c4559c9b21eb6d99fc</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>