misc/137271: Cannot update /etc/host.conf when root filesystems mount read-only

Alex Keda admin at lissyara.su
Thu Jul 30 17:00:05 UTC 2009


>Number:         137271
>Category:       misc
>Synopsis:       Cannot update /etc/host.conf when root filesystems mount read-only
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 30 17:00:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Alex Keda
>Release:        7.2
>Organization:
USSR
>Environment:
FreeBSD router.local 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Wed May 13 22:39:57 MSD 2009     lissyara at router.local:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
if root filesystem mount read-only (nfs, or etc), when machine boot I see
Generating host.conf.
eval: cannot create /etc/host.conf: Read-only file system
eval: cannot create /etc/host.conf: Read-only file system
eval: cannot create /etc/host.conf: Read-only file system
========
in file /etc/rc.d/nsswitch I see:
router# grep -R generate_host_conf *
rc.d/nsswitch:generate_host_conf()
rc.d/nsswitch:          generate_host_conf /etc/nsswitch.conf /etc/host.conf

filename for host.conf is hardcoded =(
>How-To-Repeat:
boot with / mounted read-only
>Fix:
may be add variable into /etc/defaults/rc.conf?

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list