Comment 10 for bug 1414153

Revision history for this message
Chris J Arges (arges) wrote :

FWIW, here is the systemd-virt-detect code used to detect if we are running on a virt platform.
https://github.com/systemd/systemd/blob/master/src/shared/virt.c

This would be the proper way to detect when using systemd, but we still need a bashy way of doing this with upstart. I'll look at merging some of the ideas here.