lib/facter/resolvers/xen.rb in facter-4.5.1 vs lib/facter/resolvers/xen.rb in facter-4.5.2
- old
+ new
@@ -24,10 +24,12 @@
@fact_list[fact_name]
end
def detect_xen_type
xen_type = 'xen0' if File.exist?('/dev/xen/evtchn')
- xen_type = 'xenu' if !xen_type && (File.exist?('/proc/xen') || File.exist?('/dev/xvda1'))
+ if !xen_type && (File.exist?('/proc/xen') || (File.exist?('/dev/xvda1') && !File.symlink?('/dev/xvda1')))
+ xen_type = 'xenu'
+ end
xen_type
end
def privileged?(xen_type)