Ah, no, you've been pushing the generation of local/ files into the postinst packages with the profiles themselves. The issue is that mysql-server-5.1's postinst doesn't contain the dh_apparmor generated bits to create it.
(Can dh_apparmor be used here? The mysqld apparmor policy is reloaded as part of the mysqld upstart conf, I don't think we want it also reloaded directly during the postinst.)
Ah, no, you've been pushing the generation of local/ files into the postinst packages with the profiles themselves. The issue is that mysql-server-5.1's postinst doesn't contain the dh_apparmor generated bits to create it.
(Can dh_apparmor be used here? The mysqld apparmor policy is reloaded as part of the mysqld upstart conf, I don't think we want it also reloaded directly during the postinst.)