Comment 23 for bug 1760173

Revision history for this message
Stéphane Graber (stgraber) wrote :

Not really, no. You can use systemd-detect-virt which is systemd specific but should work as a regular user, otherwise you can try to add some specialized checks like looking if /dev in the mount table is devtmpfs or not.