forked from lxc/distrobuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main: Fix cache directory removal if it's a mountpoint
This fixes an issue where the cache directory cannot be removed if it's a mountpoint. This commit tries removing the cache directory but doesn't fail if unsuccessful. Instead it tries removing the content of the cache directory. Should this fail as well, distrobuilder will issue a warning. The user is then responsible for cleaning up the cache directory. Fixes lxc#716 Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
- Loading branch information
1 parent
d2667d6
commit a9512c5
Showing
1 changed file
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters