:: Re: [DNG] new freedesktop "standard…
Góra strony
Delete this message
Reply to this message
Autor: KatolaZ
Data:  
Dla: dng
Nowe tematy: [DNG] gethostid() (was Re: new freedesktop "standard": /etc/machine-id)
Temat: Re: [DNG] new freedesktop "standard": /etc/machine-id
On Sun, Mar 10, 2019 at 09:06:50AM +0900, Olaf Meeuwissen wrote:

[cut]

> > I get 007f0100 on one jessie, 007f0101 on another jessie and 007f0101
> > on ascii. (Three different computers)
> >
> > The ascii install is on a laptop that has several installations. When I
> > reboot it into jessie, I get 007f0100. Ceres on that same box gives me
> > 007f0100.
>
> All the info I have seen on this topic in the thread is consistent with
> hostid returning the "mangled" IP address belonging to the machine's
> current hostname. This is normally set from /etc/hostname. That file
> is created during installation. The IP address is in /etc/hosts.
>


Yeah, that works like that unless there is an /etc/hostid. That file
is normally created upon each call to sethostid.

My2Cents

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - Devuan -- Freaknet Medialab  ]  
[     "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[       @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[     @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]