postinst is fragile, hanging on error
Bug #1567701 reported by
Robie Basak
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
See bug 1567695. In 5.7.11-0ubuntu4 (and ubuntu5), we're using mysqld --init-file with a SHUTDOWN at the end. But it seems that if a previous command fails, the SHUTDOWN never runs and the postinst hangs.
Is there a better way to do this so that the postinst will correctly fail on an SQL command error, instead of hanging?
To post a comment you must log in.
Will look into this some more.
Some of the more fragile commands (setting the auth_socket plugin is prone to this if installing the plugin fails for some reason) could be run using a normal client instead.