summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
authorChee Yang Lee <chee.yang.lee@intel.com>2019-11-15 09:58:48 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-21 21:17:40 +0000
commit5cb7a329d0aaac8fe5328eb2001692c540aa5ade (patch)
treeb08a88750a8fbe65113025177cfaf9b7fa08c0f7 /scripts/wic
parent9b7d65aa52171cb559cc12ca3fdeaee54b9022c1 (diff)
downloadopenembedded-core-contrib-5cb7a329d0aaac8fe5328eb2001692c540aa5ade.tar.gz
openembedded-core-contrib-5cb7a329d0aaac8fe5328eb2001692c540aa5ade.tar.bz2
openembedded-core-contrib-5cb7a329d0aaac8fe5328eb2001692c540aa5ade.zip
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/wic')
-rwxr-xr-xscripts/wic3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/wic b/scripts/wic
index 1a717300f5..ea614100c2 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -403,6 +403,9 @@ def wic_init_parser_rm(subparser):
help="path: <image>:<vfat partition><path>")
subparser.add_argument("-n", "--native-sysroot",
help="path to the native sysroot containing the tools")
+ subparser.add_argument("-r", dest="recursive_delete", action="store_true", default=False,
+ help="remove directories and their contents recursively, "
+ " this only applies to ext* partition")
def expandtype(rules):
"""