diff options
| author | Chee Yang Lee <chee.yang.lee@intel.com> | 2019-11-15 09:58:48 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-21 23:08:19 +0000 |
| commit | 3555766ea866e66b738382c95a2f3d82ef066996 (patch) | |
| tree | badd960e96d6b64d4617906c81fe64688c6da775 /scripts/lib/wic/help.py | |
| parent | bdfab842eb31edc26d3f343cce6b1a9a37ba829e (diff) | |
| download | poky-3555766ea866e66b738382c95a2f3d82ef066996.tar.gz | |
wic: rm with -r flag support
wic currently unable to remove non-empty directory in ext* partition.
enable wic rm to remove non-empty directory and all the sub-content
with -r flag.
update help documents for 'wic rm'.
[YOCTO #12404]
(From OE-Core rev: 5cb7a329d0aaac8fe5328eb2001692c540aa5ade)
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/help.py')
| -rw-r--r-- | scripts/lib/wic/help.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 968cc0ed6f..812ebe3ec8 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py | |||
| @@ -422,6 +422,7 @@ NAME | |||
| 422 | SYNOPSIS | 422 | SYNOPSIS |
| 423 | wic rm <src> <image>:<partition><path> | 423 | wic rm <src> <image>:<partition><path> |
| 424 | wic rm <src> <image>:<partition><path> --native-sysroot <path> | 424 | wic rm <src> <image>:<partition><path> --native-sysroot <path> |
| 425 | wic rm -r <image>:<partition><path> | ||
| 425 | 426 | ||
| 426 | DESCRIPTION | 427 | DESCRIPTION |
| 427 | This command removes files or directories from the vfat or ext* partition of the | 428 | This command removes files or directories from the vfat or ext* partition of the |
| @@ -456,6 +457,9 @@ DESCRIPTION | |||
| 456 | 457 | ||
| 457 | The -n option is used to specify the path to the native sysroot | 458 | The -n option is used to specify the path to the native sysroot |
| 458 | containing the tools(parted and mtools) to use. | 459 | containing the tools(parted and mtools) to use. |
| 460 | |||
| 461 | The -r option is used to remove directories and their contents | ||
| 462 | recursively,this only applies to ext* partition. | ||
| 459 | """ | 463 | """ |
| 460 | 464 | ||
| 461 | wic_write_usage = """ | 465 | wic_write_usage = """ |
