Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295406 - sys-apps/openrc: automatically init HOSTNAME in /etc/conf.d/hostname
Summary: sys-apps/openrc: automatically init HOSTNAME in /etc/conf.d/hostname
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-02 09:13 UTC by Martin Mokrejš
Modified: 2009-12-07 09:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2009-12-02 09:13:37 UTC
The template file for /etc/conf.d/hostname contains "localhost" value. However, on a running system it is possible for the ebuild to determine the current hostname and place it into the new file directly (only if that fails you can stick to localhost). I do not like going through "etc-update" and fixing files which had just a couple of changed documentation lines.
Comment 1 SpanKY gentoo-dev 2009-12-07 09:09:23 UTC
using `hostname` isnt a good idea when dealing with cross/ROOT builds.  better to load & store the hostname value directly.

http://sources.gentoo.org/sys-apps/openrc/openrc-0.5.3.ebuild?r1=1.1&r2=1.2
http://sources.gentoo.org/sys-apps/openrc/openrc-9999.ebuild?r1=1.65&r2=1.66