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 23:08:19 +0000
commit3555766ea866e66b738382c95a2f3d82ef066996 (patch)
treebadd960e96d6b64d4617906c81fe64688c6da775 /scripts/wic
parentbdfab842eb31edc26d3f343cce6b1a9a37ba829e (diff)
downloadpoky-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/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):
403 help="path: <image>:<vfat partition><path>") 403 help="path: <image>:<vfat partition><path>")
404 subparser.add_argument("-n", "--native-sysroot", 404 subparser.add_argument("-n", "--native-sysroot",
405 help="path to the native sysroot containing the tools") 405 help="path to the native sysroot containing the tools")
406 subparser.add_argument("-r", dest="recursive_delete", action="store_true", default=False,
407 help="remove directories and their contents recursively, "
408 " this only applies to ext* partition")
406 409
407def expandtype(rules): 410def expandtype(rules):
408 """ 411 """