Subject: misc/17725: spurious warning from rc.d/network when no hostname is set
To: None <gnats-bugs@gnats.netbsd.org>
From: None <grant@netbsd.org>
List: netbsd-bugs
Date: 07/26/2002 10:22:45
>Number:         17725
>Category:       misc
>Synopsis:       spurious warning from rc.d/network when no hostname is set
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 25 17:22:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        NetBSD 1.6_BETA4, 20020725
>Organization:
>Environment:
NetBSD  1.6_BETA4 NetBSD 1.6_BETA4 (GENERIC) #0: Fri Jul 26 05:35:07 EST 2002 grant@mofo:/raid/netbsd/netbsd-1-6/20020725/i386/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386

>Description:
'logger' is called in err/warn in rc.subr without checking whether it
is there. a default install without configuring network results in a
spurious warning because rc.d/network is run before /usr is mounted.

Starting network.
logger: not found
/etc/rc: WARNING: $hostname not set.

>How-To-Repeat:
install with sysinst, don't configure hostname, observe warning.

>Fix:
I have fixed this in rc.subr v1.51 and requested a pullup to -1-6.

This is priority 'high' because it looks bad on a freshly installed
system where network was not configured (a reasonable thing to do if
installing from eg. cdrom).

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