[systemd-devel] [PATCH] Angstrom support

Gustavo Sverzut Barbieri barbieri at profusion.mobi
Thu May 5 10:54:54 PDT 2011


On Thu, May 5, 2011 at 1:17 PM, Harald Hoyer <harald.hoyer at gmail.com> wrote:
>> diff --git a/src/util.c b/src/util.c
>> index f0051ee..5af9161 100644
>> --- a/src/util.c
>> +++ b/src/util.c
>> @@ -3426,6 +3426,18 @@ void status_welcome(void) {
>>
>>         if (!ansi_color)
>>                 const_color = "1;35"; /* Bright Magenta for MeeGo */
>> +#elif defined(TARGET_ANGSTROM)
>> +
>> +        if (!pretty_name) {
>> +                if ((r = read_one_line_file("/etc/angstrom-version", &pretty_name)) < 0) {
>> +
>> +                        if (r != -ENOENT)
>> +                                log_warning("Failed to read /etc/angstrom-version: %s", strerror(-r));
>> +                }
>> +        }
>> +
>> +       if (!ansi_color)
>> +               const_color = "1;35"; /* Bright Magenta for Angstrom */
>>  #endif
>>
>>          if (!pretty_name && !const_pretty)
>>
>>
>>
>
>
> Hmm, wouldn't it make sense to symlink
>
> "/etc/SuSE-release"
> "/etc/gentoo-release"
> "/etc/altlinux-release"
> "/etc/debian_version"
> "/etc/mandriva-release"
> "/etc/meego-release"
>
> to "/etc/system-release" or provide "/etc/lsb-release" ???
>
> All those #ifdefs are taking overhand...

that would be good! :-) but who has the right/final-world to get these
distros to do it?

Maybe Koen is in that position with Angstron? :-) BTW, what's the
feasibility to have Angstron as use systemd by default?


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbieri at gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202


More information about the systemd-devel mailing list