[Discussion] distrobox assemble --replace/-R
is very risky
#841
Labels
question
Further information is requested
distrobox assemble --replace/-R
is very risky
#841
Is your feature request related to a problem? Please describe.
I use custom home for my distroboxes. While trying out the
distrobox assemble
I decided to test thereplace
option.I expected it to delete the container, but not the files stored in the custom home. Either way, before running such a destructive operation, it would certainly ask me, .. right? Just like the
distrobox rm
command I had run manually seconds before.Nope. No confirmation.
distrobox assemble
immediately started the cleanup operation, leaving me perplexed about where the confirmation prompt is. Fortunately, I had verbose on and noticed it was already deleting and could Ctrl+C before much damage was done. I still don't know how much data it was able to delete though, if anyDescribe the solution you'd like
When running
distrobox assemble
with--replace/-R
orreplace=true
in distrobox.ini, it should leave the custom home alone or prompt for confirmation if deleting custom home is desired.We want to replace the container, not nuke associated user data.
The text was updated successfully, but these errors were encountered: