<?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>8820</bug_id>
          
          <creation_ts>2015-12-16 15:43:41 +0000</creation_ts>
          <short_desc>Would like to be able to specify partitions be created but not mounted in a wks</short_desc>
          <delta_ts>2016-01-12 09:32:54 +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>Scripts and Tools</component>
          <version>2.0</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>enhancement</bug_severity>
          <target_milestone>2.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57305</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2015-12-16 15:43:41 +0000</bug_when>
    <thetext>I couldn&apos;t see an obvious way to do this when reading the dev manual section on wic and the built in kickstart help.

I&apos;d like to be able to create a partition of a set size and number/position but not specifcy a mount point. This is to enable ChromeOS style setups where there are two root partitions, one active and one passive, and thus only one need be mounted at a time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57329</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-12-17 10:54:58 +0000</bug_when>
    <thetext>If you don&apos;t want your partition to be mounted you shouldn&apos;t specify mountpoint in your .wks file. Please check if it works for you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57334</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2015-12-17 11:09:19 +0000</bug_when>
    <thetext>Hi Ed, I was planning to update this report to that effect. That is I tried specifying a partition without a mountpoint and it seems to work.

I think we can update the documentation to make this possibility clearer, i.e the dev manual states

&quot; The mntpoint is where the partition will be mounted and must be of one of the following forms:

    /path: For example, /, /usr, and /home

    swap: The partition will be used as swap space.&quot;

https://www.yoctoproject.org/docs/2.0/dev-manual/dev-manual.html#command-part-or-partition

That section doesn&apos;t make it clear at all that the mntpoint is optional.

I realise, rereading it this morning, that the built in help (wic help kickstart) *does* indicate that the partition is optional by surrounding that argument with &lt;&gt; — &quot;part &lt;mountpoint&gt;&quot; — but feel it would be useful to emphasise this in the prose too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57335</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-12-17 11:14:17 +0000</bug_when>
    <thetext>Yep, that makes sense to me. Are you willing to do that?

BTW &lt;mountpoint&gt; doesn&apos;t mean that mountpoint is optional, so it makes sense to use [&lt;mountpoint&gt;] and explicitly mention in the help and documentation that this parameter is optional and what would happen if it&apos;s not used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57340</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2015-12-17 12:03:46 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Yep, that makes sense to me. Are you willing to do that?

Absolutely, done: 
http://lists.openembedded.org/pipermail/openembedded-core/2015-December/114261.html

&gt; BTW &lt;mountpoint&gt; doesn&apos;t mean that mountpoint is optional, so it makes sense
&gt; to use [&lt;mountpoint&gt;] and explicitly mention in the help and documentation
&gt; that this parameter is optional and what would happen if it&apos;s not used.

Ack</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57732</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-01-12 09:32:47 +0000</bug_when>
    <thetext>Fix is integrated into the Poky repo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57733</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-01-12 09:32:54 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ca69643faa949664e3d5c3c182cbe2ba1dc55026</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>