Build works now in a chroot, because there the chrooted mysqld binary doesn't have an apparmor profile, since the path differs from /usr/sbin/mysqld (it's /var/somechroot/usr/sbin/mysqld).
Build works now in a chroot, because there the chrooted mysqld binary doesn't have an apparmor profile, since the path differs from /usr/sbin/mysqld (it's /var/somechroot /usr/sbin/ mysqld) .