ublue-os / config

A layer to provide configuration files (udev rules, service units, etc)
https://universal-blue.org
Apache License 2.0
38 stars 26 forks source link

clean-system script removes turned off distroboxes #273

Closed wolfyreload closed 1 month ago

wolfyreload commented 2 months ago

Looking at the clean-system script, the podman system prune -a command removes all containers that are off which makes this a rather dangerous and destructive. I ran it and nuked my distrobox dev environment accidentally. Also the confirmation dialog might be confusing for new users.

I propose switching to a safer script that just removes unused podman images and volumes as this is typically safe. If you want to remove turned off containers I'd rather leave that up to the end user to do manually