From 5cb7a329d0aaac8fe5328eb2001692c540aa5ade Mon Sep 17 00:00:00 2001 From: Chee Yang Lee Date: Fri, 15 Nov 2019 09:58:48 +0800 Subject: 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 Signed-off-by: Richard Purdie --- scripts/wic | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/wic') 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: :") 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): """ -- cgit 1.2.3-korg