diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-06-13 14:21:54 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-14 10:18:28 +0100 |
commit | 7213625a7d035b6b1627aa96e94186ee6c2c531f (patch) | |
tree | 49309e42dfff9f4ecf46cfccca0961b7a968b33a /scripts/lib/wic | |
parent | 04a99adc2935326446a3d7c7a93eed12a5280b2a (diff) | |
download | poky-7213625a7d035b6b1627aa96e94186ee6c2c531f.tar.gz |
wic: add help and usage content for 'wic ls'
Added wic_ls_help and wic_ls_usage variables to
help.py. These variables contain help content that
will be used in 'wic ls help' and 'wic ls --help'
output.
(From OE-Core rev: 5152f993777550e5e8a420db4d1f3c4370cd1d33)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r-- | scripts/lib/wic/help.py | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index f9f7268986..bb3c749323 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py | |||
@@ -284,6 +284,71 @@ DESCRIPTION | |||
284 | details. | 284 | details. |
285 | """ | 285 | """ |
286 | 286 | ||
287 | wic_ls_usage = """ | ||
288 | |||
289 | List content of a partitioned image | ||
290 | |||
291 | usage: wic ls <image>[:<vfat partition>[<path>]] [--native-sysroot <path>] | ||
292 | |||
293 | This command outputs either list of image partitions or directory contents | ||
294 | of vfat partitions. | ||
295 | |||
296 | See 'wic help ls' for more detailed instructions. | ||
297 | |||
298 | """ | ||
299 | |||
300 | wic_ls_help = """ | ||
301 | |||
302 | NAME | ||
303 | wic ls - List contents of partitioned image or vfat partitions | ||
304 | |||
305 | SYNOPSIS | ||
306 | wic ls <image> | ||
307 | wic ls <image>:<vfat partition> | ||
308 | wic ls <image>:<vfat partition><path> | ||
309 | wic ls <image>:<vfat partition><path> --native-sysroot <path> | ||
310 | |||
311 | DESCRIPTION | ||
312 | This command lists either partitions of the image or directory contents | ||
313 | of vfat partitions. | ||
314 | |||
315 | The first form it lists partitions of the image. | ||
316 | For example: | ||
317 | $ wic ls tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic | ||
318 | Num Start End Size Fstype | ||
319 | 1 1048576 24438783 23390208 fat16 | ||
320 | 2 25165824 50315263 25149440 ext4 | ||
321 | |||
322 | Second and third form list directory content of vfat partition: | ||
323 | $ wic ls tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1 | ||
324 | Volume in drive : is boot | ||
325 | Volume Serial Number is 2DF2-5F02 | ||
326 | Directory for ::/ | ||
327 | |||
328 | efi <DIR> 2017-05-11 10:54 | ||
329 | startup nsh 26 2017-05-11 10:54 | ||
330 | vmlinuz 6922288 2017-05-11 10:54 | ||
331 | 3 files 6 922 314 bytes | ||
332 | 15 818 752 bytes free | ||
333 | |||
334 | |||
335 | $ wic ls tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1/EFI/boot/ | ||
336 | Volume in drive : is boot | ||
337 | Volume Serial Number is 2DF2-5F02 | ||
338 | Directory for ::/EFI/boot | ||
339 | |||
340 | . <DIR> 2017-05-11 10:54 | ||
341 | .. <DIR> 2017-05-11 10:54 | ||
342 | grub cfg 679 2017-05-11 10:54 | ||
343 | bootx64 efi 571392 2017-05-11 10:54 | ||
344 | 4 files 572 071 bytes | ||
345 | 15 818 752 bytes free | ||
346 | |||
347 | The -n option is used to specify the path to the native sysroot | ||
348 | containing the tools(parted and mtools) to use. | ||
349 | |||
350 | """ | ||
351 | |||
287 | wic_plugins_help = """ | 352 | wic_plugins_help = """ |
288 | 353 | ||
289 | NAME | 354 | NAME |