Hi Dimitrios
On 19/06/15 21:18, Dimitrios Apostolou wrote:
>> there you go:
https://github.com/cfengine/masterfiles/pull/488
> Thanks Marco!
>
> Currently CFEngine sets the "systemd" hard class in C code (sysinfo.c)
> as following: read "/proc/1/cmdline", test if it ends with "/systemd".
Uhm... OK. I see it also in bundle common inventory_linux:
> has_proc_1_cmdline::
> "systemd" expression => strcmp(lastnode($(proc_1_process), "/"), "systemd"),
> comment => "Check if (the link target of) /proc/1/cmdline is systemd";
> What do you think is missing for the detection to work on Jessie? If
> it is only the symlink dereference, that would be quite easy to fix.
That's it
> Your pull request in masterfiles looks good, but I'm not sure if it
> will be needed once a proper C code fix is in place, /maybe/ it will
> be for proper inventory reports, but the masterfiles maintainers will
> have the final word.
Well, if it's an hard class, then maybe it makes sense to remove it from
the inventory, too.
If it's OK to have in both places or it should be only in the inventory,
then something in the lines of my patch should suffice.
> Thanks for reporting the bug!
My pleasure ;-)
> P.S. is there a ticket open?
Nope! You got the fix straight ;-)
Ciao!
-- bronto