summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-06-13 14:22:10 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-14 10:18:29 +0100
commit94a03322b6333d014d7df6a8f278978f7307555c (patch)
treeaa96349bdfff414a8954d982a5d742f2fae6ee6e
parent89af63bc04caeb8a34bfe9875be8da8dbf80d5fc (diff)
downloadpoky-94a03322b6333d014d7df6a8f278978f7307555c.tar.gz
wic: add help and usage content for 'wic rm'
Added wic_rm_help and wic_rm_usage variables to help.py. These variables contain help content that will be used in 'wic rm help' and 'wic rm --help' output. (From OE-Core rev: b6894538b2a426762a07c0e7b014a04f4e00266d) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/wic/help.py59
1 files changed, 58 insertions, 1 deletions
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py
index e93ac4b74c..23d943cc4c 100644
--- a/scripts/lib/wic/help.py
+++ b/scripts/lib/wic/help.py
@@ -395,7 +395,7 @@ DESCRIPTION
395 The second form of the command copies file or directory to the specified directory 395 The second form of the command copies file or directory to the specified directory
396 on the vfat partition: 396 on the vfat partition:
397 $ wic cp test tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1/efi/ 397 $ wic cp test tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1/efi/
398 $ wic ls tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1/eti/ 398 $ wic ls tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1/efi/
399 Volume in drive : is boot 399 Volume in drive : is boot
400 Volume Serial Number is DB4C-FD4C 400 Volume Serial Number is DB4C-FD4C
401 Directory for ::/efi 401 Directory for ::/efi
@@ -411,6 +411,63 @@ DESCRIPTION
411 containing the tools(parted and mtools) to use. 411 containing the tools(parted and mtools) to use.
412""" 412"""
413 413
414wic_rm_usage = """
415
416 Remove files or directories from the vfat partitions
417
418 usage: wic rm <image>:<vfat partition><path> [--native-sysroot <path>]
419
420 This command removes files or directories from the vfat partitions of partitioned
421 image.
422
423 See 'wic help rm' for more detailed instructions.
424
425"""
426
427wic_rm_help = """
428
429NAME
430 wic rm - remove files or directories from the vfat partitions
431
432SYNOPSIS
433 wic rm <src> <image>:<vfat partition><path>
434 wic rm <src> <image>:<vfat partition><path> --native-sysroot <path>
435
436DESCRIPTION
437 This command removes files or directories from the vfat partition of the
438 wic image:
439
440 $ wic ls ./tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1
441 Volume in drive : is boot
442 Volume Serial Number is 11D0-DE21
443 Directory for ::/
444
445 libcom32 c32 186500 2017-06-02 15:15
446 libutil c32 24148 2017-06-02 15:15
447 syslinux cfg 209 2017-06-02 15:15
448 vesamenu c32 27104 2017-06-02 15:15
449 vmlinuz 6926384 2017-06-02 15:15
450 5 files 7 164 345 bytes
451 16 582 656 bytes free
452
453 $ wic rm ./tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1/libutil.c32
454
455 $ wic ls ./tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1
456 Volume in drive : is boot
457 Volume Serial Number is 11D0-DE21
458 Directory for ::/
459
460 libcom32 c32 186500 2017-06-02 15:15
461 syslinux cfg 209 2017-06-02 15:15
462 vesamenu c32 27104 2017-06-02 15:15
463 vmlinuz 6926384 2017-06-02 15:15
464 4 files 7 140 197 bytes
465 16 607 232 bytes free
466
467 The -n option is used to specify the path to the native sysroot
468 containing the tools(parted and mtools) to use.
469"""
470
414wic_plugins_help = """ 471wic_plugins_help = """
415 472
416NAME 473NAME