lib/ohai/plugins/kernel.rb in ohai-8.19.2 vs lib/ohai/plugins/kernel.rb in ohai-8.20.0
- old
+ new
@@ -154,9 +154,13 @@
kernel init_kernel
so = shell_out("uname -s")
kernel[:os] = so.stdout.split($/)[0]
+ so = File.open("/etc/release") { |file| file.gets }
+ md = /(?<update>\d.*\d)/.match(so)
+ kernel[:update] = md[:update] if md
+
modules = Mash.new
so = shell_out("modinfo")
# EXAMPLE:
# Id Loadaddr Size Info Rev Module Name