summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-06-13 14:21:59 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-14 10:18:29 +0100
commit87f30cfb447329fb0029684b78274c4a6d47b4a6 (patch)
treeed67ef8f05fc30a20119286e61aaa49758240561 /scripts
parent13bf0f4faf2afb26c0d73ecb9db3215b4cba6717 (diff)
downloadpoky-87f30cfb447329fb0029684b78274c4a6d47b4a6.tar.gz
wic: add help and usage content for 'wic cp'
Added wic_cp_help and wic_cp_usage variables to help.py. These variables contain help content that will be used in 'wic cp help' and 'wic cp --help' output. [YOCTO #11283] (From OE-Core rev: f3f0dadada1e297f2b54fa320bb817da7f755c1f) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/help.py62
1 files changed, 62 insertions, 0 deletions
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py
index bb3c749323..e93ac4b74c 100644
--- a/scripts/lib/wic/help.py
+++ b/scripts/lib/wic/help.py
@@ -349,6 +349,68 @@ DESCRIPTION
349 349
350""" 350"""
351 351
352wic_cp_usage = """
353
354 Copy files and directories to the vfat partitions
355
356 usage: wic cp <src> <image>:<vfat partition>[<path>] [--native-sysroot <path>]
357
358 This command copies local files or directories to the vfat partitions of partitioned
359 image.
360
361 See 'wic help cp' for more detailed instructions.
362
363"""
364
365wic_cp_help = """
366
367NAME
368 wic cp - copy files and directories to the vfat partitions
369
370SYNOPSIS
371 wic cp <src> <image>:<vfat partition>
372 wic cp <src> <image>:<vfat partition><path>
373 wic cp <src> <image>:<vfat partition><path> --native-sysroot <path>
374
375DESCRIPTION
376 This command copies files and directories to the vfat partition of the
377 wic image.
378
379 The first form of it copies file or directory to the root directory of
380 the vfat partition:
381 $ wic cp test.wks tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1
382 $ wic ls tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1
383 Volume in drive : is boot
384 Volume Serial Number is DB4C-FD4C
385 Directory for ::/
386
387 efi <DIR> 2017-05-24 18:15
388 loader <DIR> 2017-05-24 18:15
389 startup nsh 26 2017-05-24 18:15
390 vmlinuz 6926384 2017-05-24 18:15
391 test wks 628 2017-05-24 21:22
392 5 files 6 927 038 bytes
393 15 677 440 bytes free
394
395 The second form of the command copies file or directory to the specified directory
396 on the vfat partition:
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/
399 Volume in drive : is boot
400 Volume Serial Number is DB4C-FD4C
401 Directory for ::/efi
402
403 . <DIR> 2017-05-24 18:15
404 .. <DIR> 2017-05-24 18:15
405 boot <DIR> 2017-05-24 18:15
406 test <DIR> 2017-05-24 21:27
407 4 files 0 bytes
408 15 675 392 bytes free
409
410 The -n option is used to specify the path to the native sysroot
411 containing the tools(parted and mtools) to use.
412"""
413
352wic_plugins_help = """ 414wic_plugins_help = """
353 415
354NAME 416NAME