I'm into puppet the last few weeks and found out that facter (the part of puppet collecting information about a system) identified Funtoo as a Gentoo system.
Since I might want to do different things with a Funtoo system than with a Gentoo system (for example: Pin a version of a package to a different one) I opened a Feature-Bugrequest for the puppet - guys and told them that Funtoo exists and that they can for example differentiate them by the content of the file "/etc/gentoo-release".
Can you think of further facts that a script might check to tell if the machine it is running on is a funtoo or gentoo system? I'd like to give these hints to the bug-report to make the result more reliable. You can find the bug-report here , but if you don't want to register and such, feel free to explain it here in the forums. I'll happily hand over that informations to the puppet guys
On my machine /etc/gentoo-release says it a funtoo.
funtoo@zeus /etc $ cat gentoo-release Funtoo Linux - baselayout 2.1.8
Well, do you need more ways to check it? I think that's pretty solid
You can check if a directory '/usr/portage/profiles/funtoo' exists, or regexp a version from Funtoo's tool, for example newest genkernel (not reliable) and boot-update (funtoo-only binary I think).
thank you for participating. Yes, I'd like to suggest more ways to check this, to make the result as reliable as possible. Checking if /usr/portage/profiles/funtoo exists is a good idea Thank you.