Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 2009 11:23:54 +0200
From:      "Ronald Klop" <ronald-freebsd8@klop.yi.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: devd doesn't fire event on boot [solved]
Message-ID:  <op.utysd4ur8527sy@82-170-177-25.ip.telfort.nl>
In-Reply-To: <op.uth57o1x8527sy@82-170-177-25.ip.telfort.nl>
References:  <op.uth57o1x8527sy@82-170-177-25.ip.telfort.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
The property sernum is not very reliable. Sometimes devd knows about it  
and sometimes not.
I removed the match on it and know it works.

Ronald.

On Wed, 06 May 2009 12:03:14 +0200, Ronald Klop  
<ronald-freebsd8@klop.yi.org> wrote:

> 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.
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.utysd4ur8527sy>