Improving the Identication of Linux Distributions when Dumping

Dmitry Samersoff Dmitry.Samersoff at oracle.com
Wed Apr 20 04:34:13 PDT 2011


Oops, press send too early ... sorry!

Matthias,

   What is the purpose of this identification?

   When you install/upgrade distribution using a way official for this 
distribution you will end up running the kernel with proper version 
string. (e.g.  (Ubuntu/Linaro 4.4.4-14ubuntu5) )

   if we like to have not only ubuntu but ubuntu 10.3 you have to read
/etc/*-releases but this file doesn't reflect partial upgrades of 
running system (e.g kernel or libc upgrade) so value of this number is 
doubtful for me.

-Dmitry

On 2011-04-20 15:23, Dmitry Samersoff wrote:
> Matthias,
>
> What is the purpose of this identification?
>
> -Dmitry
>
> On 2011-04-20 13:51, Matthias Klose wrote:
>> No, that would be completely wrong. /proc/version tells you something
>> about the running kernel, not about the distribution.
>>
>> On 04/20/2011 11:34 AM, Dmitry Samersoff wrote:
>>> Matthias,
>>>
>>> Can't we just read /proc/version ?
>>>
>>> e.g.:
>>>
>>> Linux version 2.6.25-14.fc9.x86_64 (mockbuild@) (gcc version 4.3.0
>>> 20080428 (Red
>>> Hat 4.3.0-8) (GCC) ) #1 SMP Thu May 1 06:06:21 EDT 2008
>>>
>>> Linux version 2.6.38.2 (root at yoda) (gcc version 4.3.4 (Gentoo 4.3.4
>>> p1.0,
>>> pie-10.1.5) ) #1 SMP PREEMPT Sat Apr 16 00:19:00 MSD 20
>>>
>>>
>>>
>>> On 2011-04-19 19:25, Matthias Klose wrote:
>>>> plus the format for the /etc/lsb-release file is not part of the lsb
>>>> spec. A proposal to either define an API to this information, or to
>>>> document the format of this file didn't find much enthusiasm on the LSB
>>>> ML. So I would like to stay with the current approch, and read the file
>>>> if available.
>>>>
>>>> Matthias
>>>
>>>
>>
>
>


-- 
Dmitry Samersoff
Java Hotspot development team, SPB04
* There will come soft rains ...



More information about the distro-pkg-dev mailing list