Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 793860 - net-dns/bind: Your chroot dir /chroot/dns is inconsistent, please run 'emerge --config net-dns/bind' first
Summary: net-dns/bind: Your chroot dir /chroot/dns is inconsistent, please run 'emerge...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-02 10:17 UTC by Tomáš Mózes
Modified: 2021-07-18 17:55 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 Tomáš Mózes 2021-06-02 10:17:18 UTC
Doing a new machine installation, installed bind, enabled chroot, ran emerge --config net-dns/bind, but starting fails:

# /etc/init.d/named start
 * Starting chrooted named ...                                                                                                                                                                                                          [ !! ]
 * Your chroot dir /chroot/dns is inconsistent, please run 'emerge --config net-dns/bind' first
 * ERROR: named failed to start

Seems like commit https://github.com/gentoo/gentoo/commit/03b0458f99af0352b933bec57b7aff351f2c4480 removed /dev/random in pkg_config(), but the init script requires /dev/random to be present https://github.com/gentoo/gentoo/blob/master/net-dns/bind/files/named.init-r13#L80

After removing /dev/random from check_chroot() it seems to start and work fine. Not sure however if it's really needed in the chroot.
Comment 1 Tomáš Mózes 2021-06-02 10:18:45 UTC
net-dns/bind-9.16.15::gentoo was built with the following:
USE="caps dlz zlib -berkdb -dnsrps -dnstap -doc -fixed-rrset -geoip -geoip2 -gssapi -json -ldap -lmdb -mysql -odbc -postgres -python (-selinux) -static-libs -xml" ABI_X86="(64)" PYTHON_TARGETS="python3_8 python3_9"
Comment 2 Christian Nilsson 2021-07-18 09:22:12 UTC
Seeing same thing, same or similar to #673746
In that and my case urandom was missing, so during install I now copy that over. https://github.com/ASoft-se/Gentoo-HAI/pull/55

Current config "emerge --config net-dns/bind" does most of the setup
And then init script verifies that everything exists.
Instead of the init script failing, maybe it could try and actually fix the issue.
Or say some details about what is wrong instead of only "is inconsistent"
Comment 3 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2021-07-18 17:55:33 UTC
fixed as https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e8faaad077caf9048e2c5a132ddade0b0b316aa

I've killed it by mistake for chroots.