[Bug 1752705] Re: When run from systemd-nspawn, installation of mysql-server fails because postinst fails to shut down server

2018-03-02 Thread Matt Coleman
Thanks for pointing out the changes to server start/stop, Robie. Adding the `--as-pid2` parameter to `systemd-nspawn` allows it to work. ** Changed in: mysql-5.7 (Ubuntu) Status: New => Invalid ** Changed in: systemd (Ubuntu) Status: New => Invalid -- You received this bug notific

[Bug 1752705] Re: When run from systemd-nspawn, installation of mysql-server fails because postinst fails to shut down server

2018-03-02 Thread Matt Coleman
It also succeeds if I replace `dpkg --configure -a` with `ls`: rm -rf testmysql && cp -a bionic testmysql && systemd-nspawn -D testmysql bash -c 'apt update && apt install mysql-server; ls' -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubun

[Bug 1752705] Re: When run from systemd-nspawn, installation of mysql-server fails because postinst fails to shut down server

2018-03-02 Thread Matt Coleman
It behaves differently (the installation succeeds) if you install mysql- server from a bash prompt inside the container. Running the installation as a parameter to `systemd-nspawn` will fail. I have tested this on a 16.04.3 system and an 18.04 system. I just noticed something especially weird: if