Subject: misc/17725: spurious warning from rc.d/network when no hostname is set
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 07/26/2002 10:22:45
>Synopsis: spurious warning from rc.d/network when no hostname is set
>Arrival-Date: Thu Jul 25 17:22:00 PDT 2002
>Originator: grant beattie
>Release: NetBSD 1.6_BETA4, 20020725
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
'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.
logger: not found
/etc/rc: WARNING: $hostname not set.
install with sysinst, don't configure hostname, observe warning.
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).