keeping user data keeps files in /var/crash which makes little sense
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Humpolec project |
New
|
Undecided
|
Unassigned | ||
android (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am using Dual Boot and choose to Uninstall Ubuntu but keep user data. I then installed a different version of Ubuntu but discovered that my old crash files were still in /var/crash/.
root@ubuntu-
total 9.4M
-rw-r----- 1 root pulse 11K May 13 08:48 _lib_systemd_
-rw-rw-rw- 1 root pulse 0 May 13 08:48 _lib_systemd_
-rw------- 1 rtkit pulse 0 May 13 12:42 _lib_systemd_
-rw-r--r-- 1 phablet pulse 122K May 12 17:13 _usr_bin_
-rw-r----- 1 phablet pulse 8.9M May 13 08:49 _usr_bin_
-rw-rw-rw- 1 root pulse 0 May 13 08:49 _usr_bin_
-rw------- 1 rtkit pulse 0 May 13 14:02 _usr_bin_
-rw-r----- 1 root pulse 313K May 12 14:24 _usr_bin_
-rw-rw-rw- 1 root pulse 0 May 12 14:24 _usr_bin_
-rw------- 1 rtkit pulse 0 May 13 12:43 _usr_bin_
This doesn't really make sense as if apport hasn't collected additional information for the crash report, then when it does collect information it will either fail or collect information about the new system and not the one on which the crash occurred.
While I agree with this bug, I believe this is not specific for Dualboot setup. Same would happen with phablet- device- flash too.
User data is wiped by "format data" in the command file ubuntu_command, which is then parsed by the upgrader script, which does actual cleanup. Upgrader script idoes not make difference between full install and updates. So if we choose to clean /var/crash this would have to be added as supported action to ubuntu_command. This would make sense though.
It should be proposed to Ubuntu Engineering for consideration.