X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-stx%2Frecipes-support%2Ffacter%2Ffiles%2F0006-facter-updates-for-poky-stx.patch;fp=meta-stx%2Frecipes-support%2Ffacter%2Ffiles%2F0006-facter-updates-for-poky-stx.patch;h=90c2568819f571a645af23801ecd55838deb0e0c;hb=57fdea704bd62af847872c40508f00aa1d7cac60;hp=0000000000000000000000000000000000000000;hpb=f23f21bccfb750b9e30141fd9676515215ffbc4e;p=pti%2Frtp.git diff --git a/meta-stx/recipes-support/facter/files/0006-facter-updates-for-poky-stx.patch b/meta-stx/recipes-support/facter/files/0006-facter-updates-for-poky-stx.patch new file mode 100644 index 0000000..90c2568 --- /dev/null +++ b/meta-stx/recipes-support/facter/files/0006-facter-updates-for-poky-stx.patch @@ -0,0 +1,44 @@ +diff --git a/lib/facter/architecture.rb b/lib/facter/architecture.rb +index 72c5755..14ec620 100644 +--- a/lib/facter/architecture.rb ++++ b/lib/facter/architecture.rb +@@ -31,7 +31,7 @@ Facter.add(:architecture) do + end + when "x86_64" + case Facter.value(:operatingsystem) +- when "Debian", "Gentoo", "GNU/kFreeBSD", "Ubuntu" ++ when "Debian", "Gentoo", "GNU/kFreeBSD", "Ubuntu", "poky-stx" + "amd64" + else + model +diff --git a/lib/facter/operatingsystem/linux.rb b/lib/facter/operatingsystem/linux.rb +index de7913d..797698a 100644 +--- a/lib/facter/operatingsystem/linux.rb ++++ b/lib/facter/operatingsystem/linux.rb +@@ -13,6 +13,8 @@ module Facter + @operatingsystem ||= "Ubuntu" + elsif lsbdistid == "LinuxMint" + @operatingsystem ||= "LinuxMint" ++ elsif lsbdistid == "poky-stx" ++ @operatingsystem ||= "poky-stx" + else + @operatingsystem ||= get_operatingsystem_with_release_files + end +@@ -27,7 +29,7 @@ module Facter + "CloudLinux", "PSBM", "OracleLinux", "OVS", "OEL", "Amazon", + "XenServer", "VirtuozzoLinux" + "RedHat" +- when "LinuxMint", "Ubuntu", "Debian" ++ when "LinuxMint", "Ubuntu", "Debian", "poky-stx" + "Debian" + when "SLES", "SLED", "OpenSuSE", "SuSE" + "Suse" +@@ -74,6 +76,8 @@ module Facter + get_ubuntu_release_with_release_file + when "VMwareESX" + get_vmwareESX_release_with_release_file ++ when "poky-stx" ++ get_lsbdistrelease + else + Facter.value(:kernelrelease) + end