'dpkg -r snapd' WIPED /home
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
-My machine has /home on a separate partition.
-I updated to ubuntu 22.04.
-I don't know exactly how it came to be, but somehow / was mounted to /var/lib/
- After the update I had trouble using snaps, so I tried uninstalling snapd (the only dependency seemed to be firefox) so I could reinstall it with a clean slate.
- `dpkg -r snapd` printed a lot of warnings about not being able to delete stuff in /var/lib/
- the dpkg did take suspiciously long. So I aborted it. It had WIPED ~350GB of data in /var/lib/
I lost a *lot* of data. Luckily I have some backups but I think this should be looked at!
Something has gone very wrong. I'm very sorry for the damage caused by the removal script. Do you have any logs you can share. Any configuration of your system that may help debug the issue, that you can think of.
Normally hostfs is never visible on the system.
As a safety mechanism we should exclude hostfs from removal, to avoid the possibility of catastrophic failure.