NetBSD Problem Report #38055
From Wolfgang.Stukenbrock@nagler-company.com Mon Feb 18 15:43:49 2008
Received: from mail.netbsd.org (mail.netbsd.org [126.96.36.199])
by narn.NetBSD.org (Postfix) with ESMTP id 3F9C163B293
for <gnats-bugs@gnats.NetBSD.org>; Mon, 18 Feb 2008 15:43:49 +0000 (UTC)
Date: Mon, 18 Feb 2008 16:43:28 +0100 (CET)
Subject: gated startup rc-file broken - filesystem not mounted at this time
>Synopsis: gated startup rc-file broken - filesystem not mounted at this time
>Arrival-Date: Mon Feb 18 15:45:00 +0000 2008
>Last-Modified: Thu Feb 21 13:00:06 +0000 2008
>Originator: Wolfgang Stukenbrock
>Release: NetBSD 4.0 - pkgsrc-2007Q4
Dr. Nagler & Company GmbH
System: NetBSD s011 4.0 NetBSD 4.0 (NSW-S011) #17: Mon Feb 18 12:51:48 CET 2008 wgstuken@s012:/export/NetBSD-4.0/N+C-build/.OBJDIR_i386/export/NetBSD-4.0/src/sys/arch/i386/compile/NSW-S011 i386
In the example startup file (/usr/pkg/share/examples/rc.d/gated) gated is started after network and mountcritlocal
but before NETWORKING.
A this time /usr and /usr/pkg are not mounted - and gated is installed as /usr/pkg/sbin/gated.
During the boot process, the gated startup is ignored without any error indication on the console, due to
the missing binary in /usr/...
This leads to a system startup without gated running and the administrator searching for the problem ...
A second problem is, that gated expects syslogd to be up and running.
But syslogd startup expects, that that network setup has completed - at least the netbsd rc-files force this.
install gated from pkgsrc-2007Q4 and try to start it during boot process using e.g. the example startup file.
Not realy known to me.
For me I've fixed the problem by starting gated after syslogd before SERVERS - but this may break other assumtions in
Perhaps it would be a good idea to install such essential programs on a path like /etc/pkg/sbin to have them on the
root filesystem and start newsyslog and syslogd in front of the routing daemons. Syslogd is started prior named in the current
setup, so syslogd seems to be resistent agains hostname lookup failure and should also be resistend agains problems sending
messages to remote systems.
State-Changed-When: Mon, 18 Feb 2008 22:09:55 +0000
"gated" must be started before networking because all services started after
"NETWORKING" assume that routing works.
The correct fix for your system is to add "critical_filesystems_local=/usr"
From: Wolfgang Stukenbrock <Wolfgang.Stukenbrock@nagler-company.com>
Cc: pkg-manager@NetBSD.org, pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org,
Subject: Re: pkg/38055 (gated startup rc-file broken - filesystem not mounted at this time)
Date: Thu, 21 Feb 2008 10:09:52 +0100
Sorry, but his approach does not work!
gated failed to start during boot process.
With this fix gated is found and the rc-file will try to start it, but
It looks like, that gated requires syslogd to be started first.
I've already figured this out some time ago (on our NetBSD 3.1 setup),
but I've tested your suggested fix first.
I'm not 100% shure what exactly goes wrong in the startup of gated,
because gated will start later, even if syslogd has been shutdown again.
I've not the time up to now to do further analyses.
I think this problem-report should be reopend again, because the
suggested fix does not solve the problem.
Either some patches needs to be added to gated, so that it will start
prior syslogd during boot, or syslogd needs to be started prio gated -
as I wrote in the report.
In any case, starting gated before syslogd will loose all startup
messages (including problems during initialisation of gated).
> Synopsis: gated startup rc-file broken - filesystem not mounted at this time
> State-Changed-From-To: open->closed
> State-Changed-By: email@example.com
> State-Changed-When: Mon, 18 Feb 2008 22:09:55 +0000
> "gated" must be started before networking because all services started after
> "NETWORKING" assume that routing works.
> The correct fix for your system is to add "critical_filesystems_local=/usr"
> to "/etc/rc.conf".
State-Changed-When: Thu, 21 Feb 2008 13:00:06 +0000
There are more problems than mounting "/usr" in time.
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.