Comment 4 for bug 1625916

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Appended systemd.log_level=debug to boot param to observe what's going on for systemd.

It turns out I changed lxc-start argument -F to -d in systemd service file to align with its upstart one. And that certainly means lxc-start will quit right away after android init starting up. Then systemd considers that mean the main process of this service dies because its type is unspecified and defaults to simple, so it begin to kill the cgroup and all the processes belong to. Since I changed its argument to -d, so the systemd service type should also be assigned to forking, and now the system boots to GUI directly.

If we keep -F flag as it is, systemd receives SIGCHLD somehow and the begin to kill android container processes, too. So keeping -F shouldn't be the right solution here.