Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25954 - sys-apps/baselayout-1.8.6.9: domainname doesn't get set in kernel
Summary: sys-apps/baselayout-1.8.6.9: domainname doesn't get set in kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 23441 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-05 06:41 UTC by Philipp Kern
Modified: 2003-10-13 15:33 UTC (History)
1 user (show)

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 Philipp Kern 2003-08-05 06:41:25 UTC
In my opinion domainname/hostname should also be set in
/proc/sys/kernel/(domain|host)name through /etc/init.d/domainname as the current
procedure could let to some failures, or am I wrong?

Reproducible: Always
Steps to Reproduce:




Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) XP 1500+
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://gentoo.inode.at/ ftp://gentoo.inode.at/source/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg libg++ mad
mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
zlib gtkhtml alsa gdbm berkdb slang readline arts bonobo svga tcltk java guile
mysql X sdl gpm tcpd pam libwww perl python esd imlib oggvorbis gtk qt motif
opengl mozilla ldap cdr acl acpi apache2 dvd icc imap jikes moznocompose
moznoirc vim-with-x xinerama gnome ssl kde"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -frerun-loop-opt
-falign-functions=4 -fforce-mem -funroll-loops -ffast-math -finline-functions
-foptimize-sibling-calls -m3dnow -mmmx"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -frerun-loop-opt
-falign-functions=4 -fforce-mem -funroll-loops -ffast-math -finline-functions
-foptimize-sibling-calls -m3dnow -mmmx -Wno-deprecated"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-05 14:08:47 UTC
I do not understand what you want, please explain more detailed.
Comment 2 Joe Frisbie 2003-08-12 09:52:24 UTC
This is really the same as bug 23441.

The problem may be with agetty -- it is responsible for
getting the domain name into /etc/issue and it seems to
always pick the nis/yp domain name rather than (correct IMO)
dns domain name.

hostname -d and dnsdomainname seem to correctly get the domain
from /etc/resolv.conf even without running /etc/init.d/domainname.

Perhaps the issue is just documentation; the installation directions
say to "cat domain.name >/etc/dnsdomainname". If this file exists
all the init.d/domainname script does is rewrite /etc/resolv.conf.

To summarize: 1) Change install docs, say add "domain" line to 
/etc/resolv.conf; 2) Fix agetty so that is uses the real domain for
%o instead of the nis domain.

Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-08-13 22:55:05 UTC
*** Bug 23441 has been marked as a duplicate of this bug. ***
Comment 4 Juri Haberland 2003-08-28 16:31:44 UTC
Just exchange /o with /O in /etc/issue.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-13 15:33:07 UTC
Right, update util-linux and /etc/issue.