diff --git a/facts.d/sabayon.sh b/facts.d/sabayon.sh new file mode 100644 index 0000000..b577c13 --- /dev/null +++ b/facts.d/sabayon.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ -f /etc/sabayon-release ]; then + echo "operatingsystem=Sabayon" +fi diff --git a/lib/facter/operatingsystem.rb b/lib/facter/operatingsystem.rb deleted file mode 100644 index 8c1ccbb..0000000 --- a/lib/facter/operatingsystem.rb +++ /dev/null @@ -1,11 +0,0 @@ -Facter.add(:operatingsystem) do - # Sabayon Linux is a variant of Gentoo so this resolution needs to come - # before the Gentoo resolution. - has_weight(100) - confine kernel: :linux, lsbdistid: :sabayon - - setcode do - 'Sabayon' - end - end -