Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421211 - /etc/init.d/named tries to use /proc when CHROOT set
Summary: /etc/init.d/named tries to use /proc when CHROOT set
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-15 09:31 UTC by Dmitri Bogomolov
Modified: 2012-06-17 09:08 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 Dmitri Bogomolov 2012-06-15 09:31:14 UTC
As far as I know FreeBSD does not use the /proc.

Reproducible: Always

Steps to Reproduce:
1. set CHROOT and unset CHROOT_NOMOUNT in /etc/conf.d/named
2. emerge --config net-dns/bind
3. eselect rc start named
Actual Results:  
 * Starting chrooted named ...
 * Mounting chroot dirs
awk: can't open file /proc/mounts
 source line number 1
 * mounting /etc/bind to /home/dns/etc/bind
usage: mount [-adflpruvw] [-F fstab] [-o options] [-t ufs | external_type]
       mount [-dfpruvw] special | node
       mount [-dfpruvw] [-o options] [-t ufs | external_type] special node                        [ !! ]
awk: can't open file /proc/mounts
 source line number 1
 * mounting /var/bind to /home/dns/var/bind
usage: mount [-adflpruvw] [-F fstab] [-o options] [-t ufs | external_type]
       mount [-dfpruvw] special | node
       mount [-dfpruvw] [-o options] [-t ufs | external_type] special node                        [ !! ]
awk: can't open file /proc/mounts
 source line number 1
 * mounting /var/log/named to /home/dns/var/log/named
usage: mount [-adflpruvw] [-F fstab] [-o options] [-t ufs | external_type]
       mount [-dfpruvw] special | node
       mount [-dfpruvw] [-o options] [-t ufs | external_type] special node                        [ !! ]
 * Checking named configuration ...
 * No /home/dns/etc/bind/named.conf file exists!                                                  [ !! ]
 * ERROR: named failed to start

Expected Results:  
 * Caching service dependencies ...                                                               [ ok ]
 * Starting named ...
 * Checking named configuration ...                                                               [ ok ]
Comment 1 Naohiro Aota gentoo-dev 2012-06-17 09:08:26 UTC
Gentoo/FreeBSD's fstab has this line to provide linux like proc file system.

#none		/proc		linprocfs	rw,noexec,nosuid	0 0

Please enable it.