One of the fixes for
MDEV-19876 added a "chown" call to mysql_install_db:
This essentially introduces a new limitation that mysql_install_db has to be run as root. This is not ideal for all users.
In my opinion, a packaging script seems like a more appropriate place for a fix like this than mysql_install_db does.