[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, master, updated. debian/1.6.10-1-2-gbcb6d64

Micah Anderson micah at riseup.net
Fri Jul 27 19:28:52 UTC 2012


The following commit has been merged in the master branch:
commit 00fb8c9198d237cc3f47ebd9d87a2a61ddd60598
Author: Grant Heffernan <heffergm at gmail.com>
Date:   Wed Feb 1 18:38:29 2012 -0500

    fix xen0/xenu detection: https://projects.puppetlabs.com/issues/10625

diff --git a/lib/facter/virtual.rb b/lib/facter/virtual.rb
index ea9e1bd..652e528 100644
--- a/lib/facter/virtual.rb
+++ b/lib/facter/virtual.rb
@@ -73,9 +73,9 @@ Facter.add("virtual") do
     end
 
     if Facter::Util::Virtual.xen?
-      if FileTest.exists?("/proc/xen/xsd_kva")
+      if FileTest.exists?("/dev/xen/evtchn")
         result = "xen0"
-      elsif FileTest.exists?("/proc/xen/capabilities")
+      elsif FileTest.exists?("/proc/xen")
         result = "xenu"
       end
     end

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list