Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130639 - baselayout: /etc/init.d/domainname script missing
Summary: baselayout: /etc/init.d/domainname script missing
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Highest major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 131278 133694 (view as bug list)
Depends on:
Blocks: 143988
  Show dependency tree
 
Reported: 2006-04-20 11:46 UTC by Kesara Rathnayake
Modified: 2008-06-02 09:12 UTC (History)
2 users (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 Kesara Rathnayake 2006-04-20 11:46:37 UTC
/etc/init.d/domainname script is missing in baselayout package.
version: baselayout-1.12.0_pre17
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-20 11:50:57 UTC
This is NOT a bug. It's even documented in baselayout's ewarn...

<snip>
	if [[ -e "${ROOT}"/etc/init.d/domainname ]] ; then
		rm -f "${ROOT}"/etc/init.d/domainname
		rm -f "${ROOT}"/etc/runlevels/*/domainname
		ewarn "The domainname init script has been removed in this version."
		ewarn "Consult ${ROOT}/etc/conf.d/net.example for details about how"
		ewarn "to apply dns/nis information to the loopback interface."
	fi
</snip>
Comment 2 SpanKY gentoo-dev 2006-04-25 16:25:53 UTC
*** Bug 131278 has been marked as a duplicate of this bug. ***
Comment 3 Kesara Rathnayake 2006-04-25 18:30:39 UTC
If you get any warnings saying domainname is missing while booting,
use this command to avoid such warnings...
rm -f /etc/runlevels/*/domainname
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-18 08:04:30 UTC
*** Bug 133694 has been marked as a duplicate of this bug. ***
Comment 5 Peter Ambroz 2008-06-02 09:12:05 UTC
/etc/conf.net is not a full replacement for the /etc/init.d/domainname script.
there is no way in gentoo to setup the domainname through provided config files (in fact, to call the domainname binary / call the setdomainname() function). When you set it up through /etc/conf.d/net, it is just written into resolv.conf. Thus applications like postfix, which call the gethostname() and getdomainname() are still getting "(none)" as the domain.
The solution is to include line "domainname <my domain>" into /etc/conf.d/local.start, but the domainname rc script would have been a cleaner solution.