Bug 233682

Summary: 12.0-RC2 - /etc/rc.d/devd takes VERY long at boot
Product: Base System Reporter: Slawomir Wojciech Wojtczak <vermaden>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not A Bug    
Severity: Affects Only Me Keywords: regression
Priority: ---    
Version: 12.0-RELEASE   
Hardware: Any   
OS: Any   

Description Slawomir Wojciech Wojtczak 2018-12-01 11:24:31 UTC
The /etc/rc.d/devd takes VERY long at the boot (waiting for something?).

This was not the case in 11.2-RELEASE.
Comment 1 Slawomir Wojciech Wojtczak 2018-12-02 10:08:50 UTC
For the record, same with RC3.
Comment 2 Slawomir Wojciech Wojtczak 2018-12-09 23:38:45 UTC
This was my fault.

Its not a bug.

Its because now my 'automount' - https://github.com/vermaden/automount - does check ugen(4) devices for MTP services and that took too long at boot.

I disabled it at boot (first 45 seconds) and now devd(8) starts fast.

Used code for the record:
| BOOTTIME=$( sysctl -n kern.boottime | awk '{print $4}' | tr -d ',' )
| CURRTIME=$( date +%s )
| DIFFTIME=$(( ${CURRTIME} - ${BOOTTIME} ))
| if [ ${DIFFTIME} -lt 45 ]
| then
|   exit 0
| fi

Regards and sorry for 'fake' bug.