You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Distrobuilder tries removing the cache directory before it does anything, just to ensure it starts with a clean slate. In this case the directory is a mountpoint which cannot be removed.
What we could do is try removing only the directory content, not the directory itself. If this also fails, we could issue a warning instead of an error. The user would then be responsible for cleaning up the cache directory.
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.
Fixeslxc#716
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
distrobuilder git-2c88fed 1582 latest/edge stgraber classic
I used to mount the cachedir as tempfs to save ssd writes. It has worked previously:
But recently I got this error message:
distrobuilder Error: Failed removing cache directory: unlinkat /var/cache/distro: device or resource busy
The text was updated successfully, but these errors were encountered: