Gentoo Archives: gentoo-dev

From: Rich Freeman <rich0@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] rfc: /etc/hostname on gentoo
Date: Tue, 23 Aug 2016 10:01:54
Message-Id: CAGfcS_m9v2nHwV4oOaae1geFobUYNEhCwPAVhSFWOYDdU=kCOg@mail.gmail.com
In Reply to: Re: [gentoo-dev] rfc: /etc/hostname on gentoo by Daniel Campbell
1 On Tue, Aug 23, 2016 at 2:39 AM, Daniel Campbell <zlg@g.o> wrote:
2 >
3 > It makes a bit more sense to rely on previous configuration
4 > (/etc/conf.d/hostname) and write a tiny 'script' that populates
5 > /etc/hostname. bash could do it (naively) in two lines:
6 >
7 > source /etc/conf.d/hostname
8 > echo "$hostname" > /etc/hostname
9 >
10
11 Seems to me that symlinking /proc/sys/kernel/hostname would be
12 simpler. Also, more reliable, because there are other ways the
13 hostname could be set other than from /etc/conf.d/hostname. The
14 hostname can also change.
15
16 --
17 Rich

Replies

Subject Author
Re: [gentoo-dev] rfc: /etc/hostname on gentoo Christian Kniep <ckniep@××××××.com>