Date: Thu, 30 Jul 2009 16:53:24 GMT From: Alex Keda <admin@lissyara.su> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/137271: Cannot update /etc/host.conf when root filesystems mount read-only Message-ID: <200907301653.n6UGrODb011462@www.freebsd.org> Resent-Message-ID: <200907301700.n6UH044i030018@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907301653.n6UGrODb011462>