You are not logged in.

#1 2012-04-08 09:20:01

Judge
Staff
From: Germany, NRW, Heiligenhaus
Registered: 2011-07-03
Posts: 242
Website

Differentiate Funtoo from Gentoo systems

Hi everyone!

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 smile

Offline

#2 2012-04-13 02:03:52

imaginasys
Member
Registered: 2010-10-07
Posts: 97

Re: Differentiate Funtoo from Gentoo systems

On my machine /etc/gentoo-release says it a funtoo.

funtoo@zeus /etc $ cat gentoo-release 
Funtoo Linux - baselayout 2.1.8

Regards,
             Bernard :=)

Offline

#3 2012-04-13 08:39:44

Judge
Staff
From: Germany, NRW, Heiligenhaus
Registered: 2011-07-03
Posts: 242
Website

Re: Differentiate Funtoo from Gentoo systems

Hi Bernard,

thank you for participating , but that was already listed by me as one possibility wink I'd like to know scriptable, additional checks for that smile

Offline

#4 2012-04-16 07:35:01

Juippisi
Member
From: /home
Registered: 2012-03-01
Posts: 50

Re: Differentiate Funtoo from Gentoo systems

Well, do you need more ways to check it? I think that's pretty solid smile

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).

Offline

#5 2012-04-16 08:04:07

Judge
Staff
From: Germany, NRW, Heiligenhaus
Registered: 2011-07-03
Posts: 242
Website

Re: Differentiate Funtoo from Gentoo systems

Hi Juippisi,

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 smile Thank you.

Offline

Board footer

Powered by FluxBB