NetBSD Problem Report #50847

From www@NetBSD.org  Thu Feb 25 00:47:11 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 5A4527AC07
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 25 Feb 2016 00:47:11 +0000 (UTC)
Message-Id: <20160225004710.6D0487ACD7@mollari.NetBSD.org>
Date: Thu, 25 Feb 2016 00:47:10 +0000 (UTC)
From: andrew.cagney@gmail.com
Reply-To: andrew.cagney@gmail.com
To: gnats-bugs@NetBSD.org
Subject: complain if /usr/sbin/wpa_supplicant isn't present
X-Send-Pr-Version: www-1.0

>Number:         50847
>Category:       bin
>Synopsis:       complain if /usr/sbin/wpa_supplicant isn't present
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 25 00:50:00 +0000 2016
>Last-Modified:  Thu Feb 25 10:49:15 +0000 2016
>Originator:     Andrew Cagney
>Release:        7.99 ~ Feb 22, 2016
>Organization:
>Environment:
NetBSD rpi 7.99.26 NetBSD 7.99.26 (RPI) #0: Mon Feb 22 14:20:58 EST 2016  cagney@morgan:/home/cagney/NetBSD/trunk/evbearmv6hf-el/sys/arch/evbarm/compile/RPI evbarm

>Description:
When /usr isn't mounted and wpa_supplicant is enabled in rc.conf, things fail silently because:

                        if [ ! -x ${_chroot}${command} ]; then
                                return 0
                        fi

I think it should issue an informational message
>How-To-Repeat:
- set up a machine with separate /usr
- enable wpa_supplicant in rc.conf
- reboot
(yes, critical_filesystems_local should be missing)

wpa_supplicant doesn't start and there's nothing to hint at why.  Puzzlingly, running '/etc/rc.d/wpa_supplicant start' after boot works!
>Fix:
add a warn() call line vis:

                        if [ ! -x ${_chroot}${command} ]; then
                                warn {_chroot}${command} not found
                                return 0
                        fi

(BTW, is critical_filesystems_local normally set by the installer?)

>Release-Note:

>Audit-Trail:
From: Andrew Cagney <andrew.cagney@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/50847
Date: Thu, 25 Feb 2016 00:24:05 -0500

 supplied e-mail address contains typo :-/

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.