]> code.ossystems Code Review - openembedded-core.git/commit
wic/engine: improve error reporting when using rm with wic
authorAnuj Mittal <anuj.mittal@intel.com>
Fri, 20 Jul 2018 07:44:50 +0000 (15:44 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jul 2018 12:16:31 +0000 (13:16 +0100)
commita405383e63c35d7b56108f192ca74755b122a639
treeb2c91fc599b7655e5af59b6c02f01d9c790b2e85
parentca3f2f6b49edee7052ef941228dc477d9060bdd9
wic/engine: improve error reporting when using rm with wic

When trying to delete something from an ext partition using debugfs, we
don't show any error to the user when that operation fails.

Change this behavior to show the error generated by debugfs. Also,
fallback to use rmdir in case we are trying to delete a directory. However,
unlike mdeltree that is used for a FAT partition, there's no easy way to
delete a non empty directory. Show an error instead when that happens so
user can take appropriate action.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/engine.py