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