Make netif REQUIRE hostid

As noted in the PR, if etc/rc.d/zvol is removed, netif will be run before
hostid, and the MAC address generated for any bridge devices will be
non-deterministic. Make the MAC address generated be deterministic for
bridge devices by explicitly REQUIRE'ing hostid.

This fixes up the rest of the PR, inadvertently committed in r299844

MFC after: 1 week
PR: 195188
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2016-05-29 02:59:03 +00:00
parent c72088fd52
commit 08f9163b69

View File

@ -27,7 +27,7 @@
# PROVIDE: netif
# REQUIRE: FILESYSTEMS iovctl serial sppp sysctl
# REQUIRE: ipfilter ipfs
# REQUIRE: hostid ipfilter ipfs
# KEYWORD: nojailvnet
. /etc/rc.subr