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 21:17:40 +0000 |
commit | 5cb7a329d0aaac8fe5328eb2001692c540aa5ade (patch) | |
tree | b08a88750a8fbe65113025177cfaf9b7fa08c0f7 /scripts/lib/wic/help.py | |
parent | 9b7d65aa52171cb559cc12ca3fdeaee54b9022c1 (diff) | |
download | openembedded-core-contrib-5cb7a329d0aaac8fe5328eb2001692c540aa5ade.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]
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 SYNOPSIS wic rm <src> <image>:<partition><path> wic rm <src> <image>:<partition><path> --native-sysroot <path> + wic rm -r <image>:<partition><path> DESCRIPTION This command removes files or directories from the vfat or ext* partition of the @@ -456,6 +457,9 @@ DESCRIPTION The -n option is used to specify the path to the native sysroot containing the tools(parted and mtools) to use. + + The -r option is used to remove directories and their contents + recursively,this only applies to ext* partition. """ wic_write_usage = """ |