[debian-mysql] Bug#829491: mariadb-server-10.0: Removes lost+found directory if purged, /var/lib/mysql is a mountpoint with an ext4 filesystem, and user requests to remove all databases

Otto Kekäläinen otto at debian.org
Sun Jul 3 19:14:39 UTC 2016


Hello!

Thanks for your report. The problem is that the purge section in the
postrm script does a simple rm, which works OK if the directory is a
normal directory, but not if it is a mountpoint. The postrm script
does not have any kind of mountpoint detection or conditional
handling for that scenario.

Would you want to give it a try and produce a patch?

The git repo and file is here:
http://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.0.git/tree/debian/mariadb-server-10.0.postrm
There is also a Github mirror if you prefer Github fork+pr-workflow:
https://github.com/ottok/mariadb-10.0

If you provide a patch, I am happy to review it and help with testing.
As this is only some scripting, you don't need to spend time building
MariaDB at all, just unpack the deb and hack on the postrm script.



More information about the pkg-mysql-maint mailing list