<?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>12408</bug_id>
          
          <creation_ts>2017-12-07 19:13:01 +0000</creation_ts>
          <short_desc>Update wic documentation to remove outdated &quot;help&quot; references</short_desc>
          <delta_ts>2024-02-27 20:16:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Mega Manual</product>
          <component>mega-manual</component>
          <version>5.99</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Amber Elliot">amber.n.elliot</reporter>
          <assigned_to name="Michael Opdenacker">michael.opdenacker</assigned_to>
          <cc>randy.macleod</cc>
    
    <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>78599</commentid>
    <comment_count>0</comment_count>
    <who name="Amber Elliot">amber.n.elliot</who>
    <bug_when>2017-12-07 19:13:01 +0000</bug_when>
    <thetext>Documentation fix for bug 12205.

Section 4.13.3 needs to be updated, as &quot;wic help &lt;command&gt;&quot; is no longer valid. The new functionality is:

for standard help output:
wic -h
wic -help
wic help            #left for compatibility reasons only

for command specific help output:
wic &lt;command&gt; -h
wic &lt;command&gt; -help

for canned image and source plugin information:
wic list &lt;image&gt; info</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78641</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-12-08 22:46:26 +0000</bug_when>
    <thetext>Did this functionality just get changed?  I did a &apos;git pull&apos; on poky/master and ran &apos;wic help write&apos; and got well-formatted help for the wic write command.

I don&apos;t quite know what is going on here...

Here is an example of &apos;wic write -h&apos; 

scottrif@scottrif-ThinkPad-T460:~/poky/build$ wic write -h
usage: wic write [-h] [-e EXPAND] [-n NATIVE_SYSROOT] image target

positional arguments:
  image                 path to the wic image
  target                target file or device

optional arguments:
  -h, --help            show this help message and exit
  -e EXPAND, --expand EXPAND
                        expand rules: auto or
                        &lt;partition&gt;:&lt;size&gt;[,&lt;partition&gt;:&lt;size&gt;]
  -n NATIVE_SYSROOT, --native-sysroot NATIVE_SYSROOT
                        path to the native sysroot containing the tools


Here is an example of &apos;wic help write&apos;

scottrif@scottrif-ThinkPad-T460:~/poky/build$ wic help write


NAME
    wic write - write an image to a device

SYNOPSIS
    wic write &lt;image&gt; &lt;target&gt;
    wic write &lt;image&gt; &lt;target&gt; --expand auto
    wic write &lt;image&gt; &lt;target&gt; --expand 1:100M-2:300M
    wic write &lt;image&gt; &lt;target&gt; --native-sysroot &lt;path&gt;

DESCRIPTION
    This command writes an image to a target device (USB stick, SD card etc)

        $ wic write ./tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic /dev/sdb

    The --expand option is used to resize image partitions.
    --expand auto expands partitions to occupy all free space available on the target device.
    It&apos;s also possible to specify expansion rules in a format
    &lt;partition&gt;:&lt;size&gt;[-&lt;partition&gt;:&lt;size&gt;...] for one or more partitions.
    Specifying size 0 will keep partition unmodified.
    Note: Resizing boot partition can result in non-bootable image for non-EFI images. It is
    recommended to use size 0 for boot partition to keep image bootable.

    The --native-sysroot option is used to specify the path to the native sysroot
    containing the tools(parted, resize2fs) to use.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78697</commentid>
    <comment_count>2</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2017-12-14 15:36:18 +0000</bug_when>
    <thetext>Please answer Scott&apos;s Question.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78931</commentid>
    <comment_count>3</comment_count>
    <who name="Amber Elliot">amber.n.elliot</who>
    <bug_when>2018-01-05 18:59:08 +0000</bug_when>
    <thetext>Hi Scott - sorry, I missed your comment when I was on vacation. If you refer to bug 12205, you&apos;ll better understand the motivation for this change. What you are seeing is correct; while &apos;wic help create&apos; seems like it is formatted fine, it is not formatted based on standard command help output and wasn&apos;t implemented using the standard tools. Other help outputs were not so readable, so this change unifies the help output to be more standard and helpful. 

However - this bug was created when the pull request for bug 12205 was created, and it seems that this wasn&apos;t ever merged, so the changes don&apos;t exist on master yet. I&apos;ll look into this and see if there is a timeline for merging so the documentation changes can be made.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79353</commentid>
    <comment_count>4</comment_count>
    <who name="Amber Elliot">amber.n.elliot</who>
    <bug_when>2018-02-05 21:42:52 +0000</bug_when>
    <thetext>Currently just waiting on the patch for 12205 to be accepted, latest version submitted 1/30.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98332</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-02-27 20:16:13 +0000</bug_when>
    <thetext>I don&apos;t think this is really relevant anymore.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>