From owner-freebsd-stable@FreeBSD.ORG Wed May 6 10:03:17 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62DCF106564A for ; Wed, 6 May 2009 10:03:17 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out1.tiscali.nl (smtp-out1.tiscali.nl [195.241.79.176]) by mx1.freebsd.org (Postfix) with ESMTP id 29BA48FC1F for ; Wed, 6 May 2009 10:03:16 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [212.123.145.58] (helo=sjakie.klop.ws) by smtp-out1.tiscali.nl with esmtp id 1M1dy7-0002b8-Cr for ; Wed, 06 May 2009 12:03:15 +0200 Received: from 82-170-177-25.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id C14AAA217 for ; Wed, 6 May 2009 12:03:14 +0200 (CEST) Date: Wed, 06 May 2009 12:03:14 +0200 To: freebsd-stable@freebsd.org From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.64 (FreeBSD) Subject: devd doesn't fire event on boot X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2009 10:03:17 -0000 Hello, Running 7.2-STABLE/amd64. I have a USB-disk and added stuff to devd to mount it readonly on attach. This does work if I attach it after booting up, but not if it is attached before booting. [root@sjakie ~]# cat /etc/devd/philips.conf attach 10 { device-name "umass[0-9]+"; match "vendor" "0x0471"; match "product" "0x083a"; match "sernum" "20521126"; action "/root/bin/mountphilips.sh"; }; [root@sjakie ~]# cat /root/bin/mountphilips.sh #! /bin/sh ( # Sleep, so geom and other kernel stuff can handle the disk # before we try to mount it. sleep 10 mount -v /mnt/backupdisk ) & [root@sjakie ~]# grep backupdisk /etc/fstab /dev/ufs/Extern /mnt/backupdisk ufs ro,noauto 0 0 What can be wrong? Is it possible devd misses events which happened before devd was started? Is this known behaviour? Ronald.