<?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>4036</bug_id>
          
          <creation_ts>2013-03-16 09:17:44 +0000</creation_ts>
          <short_desc>scripts/contrib/mkefidisk.sh hardcodes &apos;rw&apos; as root mount option</short_desc>
          <delta_ts>2013-04-05 17:23:43 +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>All</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.4 M6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Koen Kooi">koen</reporter>
          <assigned_to name="Darren Hart">dvhart</assigned_to>
          
          
          
          <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>30771</commentid>
    <comment_count>0</comment_count>
    <who name="Koen Kooi">koen</who>
    <bug_when>2013-03-16 09:17:44 +0000</bug_when>
    <thetext>scripts/contrib/mkefidisk.sh hardcodes &apos;rw&apos; as root mount option, which breaks fsck which expects a &apos;ro&apos; param to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30864</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-03-19 18:36:51 +0000</bug_when>
    <thetext>When is fsck breaking? During a boot test?

What would you like to see instead? An option to use &apos;rw&apos;, unilateral use of &apos;ro&apos;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30865</commentid>
    <comment_count>2</comment_count>
    <who name="Koen Kooi">koen</who>
    <bug_when>2013-03-19 18:48:07 +0000</bug_when>
    <thetext>you can&apos;t run fsck on a rw fs, I&apos;d like to have an option to choose ro or rw, but just replacing rw with ro is fine by me as well</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30866</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-03-19 18:54:11 +0000</bug_when>
    <thetext>If this is just running it after boot.... why not just remount the fs?

$ mount -o remount,ro /dev/sda2 /
$ fsck /dev/sda2

This is what I&apos;ve always done. It seems backwards to change the normal boot method and parameters so a debugging tool can be run without any setup....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30867</commentid>
    <comment_count>4</comment_count>
    <who name="Koen Kooi">koen</who>
    <bug_when>2013-03-19 19:00:12 +0000</bug_when>
    <thetext>well, you need to boot with &apos;ro&apos; if you don&apos;t use an initramfs and want the builtin fsck to work, which it doesn&apos;t do right now. 
I realize that oe-core sysv scripts don&apos;t have any way to run fsck, but systemd does, and it has worked great for years now on other platforms (e.g. beagle*). I don&apos;t see why mkefidisk.sh needs to be special and force rw mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30868</commentid>
    <comment_count>5</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-03-19 19:05:13 +0000</bug_when>
    <thetext>OK, that is why asked if it was part of boot or later. I&apos;m fine adding the option to choose which to use.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31622</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-04-05 17:23:43 +0000</bug_when>
    <thetext>commit 24cd3ddeb70a3d3f2985ec71c87ae0108f3d2777
Author: Darren Hart &lt;dvhart@linux.intel.com&gt;
Date:   Tue Mar 19 15:15:03 2013 -0700

    mkefidisk: Boot with ro kernel parameter instead of rw</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>