diff options
author | delphij <delphij@FreeBSD.org> | 2014-09-13 02:15:31 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-09-13 02:15:31 +0000 |
commit | edc7ea3a5d36632b4b34de01da7109a81c9b39cf (patch) | |
tree | 90bd58d5fdad38f917effa8d5ce8a33002b06656 /etc | |
parent | 9bf7e49bfc27b3ec422834dbed634445004aa420 (diff) | |
download | FreeBSD-src-edc7ea3a5d36632b4b34de01da7109a81c9b39cf.zip FreeBSD-src-edc7ea3a5d36632b4b34de01da7109a81c9b39cf.tar.gz |
Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,
many thanks for their continued support of FreeBSD.
While I'm there, also implement a new build knob, WITHOUT_HYPERV to
disable building and installing of the HyperV utilities when necessary.
The HyperV utilities are only built for i386 and amd64 targets.
This is a stable/10 candidate for inclusion with 10.1-RELEASE.
Submitted by: Wei Hu <weh microsoft com>
MFC after: 1 week
Diffstat (limited to 'etc')
-rw-r--r-- | etc/mtree/BSD.usr.dist | 2 | ||||
-rw-r--r-- | etc/mtree/BSD.var.dist | 2 | ||||
-rw-r--r-- | etc/rc.d/Makefile | 5 | ||||
-rw-r--r-- | etc/rc.d/hv_kvpd | 15 |
4 files changed, 24 insertions, 0 deletions
diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist index 0848500..977cf75 100644 --- a/etc/mtree/BSD.usr.dist +++ b/etc/mtree/BSD.usr.dist @@ -108,6 +108,8 @@ .. bsdinstall .. + hyperv + .. lpr ru .. diff --git a/etc/mtree/BSD.var.dist b/etc/mtree/BSD.var.dist index 990c23c..7d4af0b 100644 --- a/etc/mtree/BSD.var.dist +++ b/etc/mtree/BSD.var.dist @@ -42,6 +42,8 @@ .. freebsd-update mode=0700 .. + hyperv mode=0700 + .. ipf mode=0700 .. pkg diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile index 64e83ac..d0897e3 100644 --- a/etc/rc.d/Makefile +++ b/etc/rc.d/Makefile @@ -57,6 +57,7 @@ FILES= DAEMON \ hostid \ hostid_save \ hostname \ + ${_hv_kvpd} \ inetd \ initrandom \ ip6addrctl \ @@ -192,6 +193,10 @@ _ubthidhci= ubthidhci _casperd= casperd .endif +.if ${MK_HYPERV} != "no" +_hv_kvpd= hv_kvpd +.endif + .if ${MK_UNBOUND} != "no" _unbound= local_unbound .endif diff --git a/etc/rc.d/hv_kvpd b/etc/rc.d/hv_kvpd new file mode 100644 index 0000000..78e4b74 --- /dev/null +++ b/etc/rc.d/hv_kvpd @@ -0,0 +1,15 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: hv_kvpd + +. /etc/rc.subr + +name="hv_kvp_daemon" +command="/usr/sbin/${name}" +required_dirs="/var/db/hyperv" + +load_rc_config $name +run_rc_command "$1" |