There are two obvious potential problems:
1) Apport in the container isn't in /usr/share/apport/apport. There's unfortunately not much we can do but maybe hardcode a few known locations (if we know other distros tend to ship it in some other place).
2) The chroot command isn't in /usr/sbin/chroot (it very well could be /sbin/chroot). I tried using execvp to solve that one, however this didn't work, probably because PATH isn't set or is empty.
Those two won't be a problem now but may be worth keeping in mind and addressing eventually.
Branch updated.
There are two obvious potential problems: apport/ apport. There's unfortunately not much we can do but maybe hardcode a few known locations (if we know other distros tend to ship it in some other place).
1) Apport in the container isn't in /usr/share/
2) The chroot command isn't in /usr/sbin/chroot (it very well could be /sbin/chroot). I tried using execvp to solve that one, however this didn't work, probably because PATH isn't set or is empty.
Those two won't be a problem now but may be worth keeping in mind and addressing eventually.