[debian-mysql] Reason for code in mysql/mariadb -server-XX.preinst?

Robie Basak robie.basak at ubuntu.com
Thu Nov 12 13:20:36 UTC 2015

Hi All,

I'm looking at refactoring the flags code and data directory handling.
Looking at the preinst in both MySQL and MariaDB packaging, I see that
the server is being stopped, user and groups created and /var/lib/mysql/

Is there any reason that you can think of why this can't be done in the
postinst instead? That would make it simpler I think.

I understand that some goal might have been to make things fail early
(before unpack), but my plan after the refactoring is that there will
always be a path that won't fail, so I'm not worried about that.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20151112/07c98d97/attachment.sig>

More information about the pkg-mysql-maint mailing list