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/lib/wic/help.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/lib/wic/help.py') 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 : wic rm : --native-sysroot + wic rm -r : 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 = """ -- cgit 1.2.3-korg