Practically, I believe quite some people still use mysql instead of mariadb, not to mention other variation and/or version that use different path and file name.
Reasonably, people doing this level of “hack” should know what they are doing and what they have done. No one will put [mysqld] into /etc/fstab, right?