![]() |
Hi, is there a simple way to check that we're running under a domU? So far I came up with: [[ -d /proc/xen && ! -z `ls /sys/bus/xen/devices/` ]] or -e /sys/bus/xen/drivers/vbd || -e /sys/bus/xen/drivers/vif Neither of which is pretty, and I'm not convinced they work under all circumstances. This is useful for system setup scripts to do different things depending if they are run under dom0/U. Thanks, Chris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Copyright
, Citrix Systems Inc. All rights reserved.
Legal and Privacy
|