diff options
author | bad <bad@pkgsrc.org> | 2016-04-04 15:13:15 +0000 |
---|---|---|
committer | bad <bad@pkgsrc.org> | 2016-04-04 15:13:15 +0000 |
commit | d4e99d35b6cf04c70b8882212307cbdadbe4fb18 (patch) | |
tree | 43645fb77c18ead81972a3d3f06a8762dd9fd573 /sysutils/xentools42/Makefile | |
parent | 884bcd86ed84d3ea68c18377c966dd5c46be78d4 (diff) | |
download | pkgsrc-d4e99d35b6cf04c70b8882212307cbdadbe4fb18.tar.gz |
Guard the NetBSD block device hotplug script against concurrent execution.
xl(1) runs the hotplug scripts in parallel. This causes failures when the
next free vnd device is selected.
Locking modeled after the Linux block hotplug script.
Diffstat (limited to 'sysutils/xentools42/Makefile')
-rw-r--r-- | sysutils/xentools42/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysutils/xentools42/Makefile b/sysutils/xentools42/Makefile index c7b8e19d2aa..24ff4a7a840 100644 --- a/sysutils/xentools42/Makefile +++ b/sysutils/xentools42/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.43 2016/04/04 15:03:14 bad Exp $ +# $NetBSD: Makefile,v 1.44 2016/04/04 15:13:15 bad Exp $ VERSION= 4.2.5 VERSION_IPXE= 1.0.0 @@ -145,7 +145,7 @@ SUBST_FILES.conf+= libxl/xl_cmdtable.c SUBST_FILES.conf+= ../docs/misc/xl-disk-configuration.txt SUBST_SED.conf= -e "s,@XENDCONFDIR@,${PKG_SYSCONFDIR},g" -XEND_SCRIPTS= block vif-bridge vif-ip qemu-ifup hotplugpath.sh +XEND_SCRIPTS= block vif-bridge vif-ip qemu-ifup hotplugpath.sh locking.sh SUBST_CLASSES.NetBSD+= proc SUBST_STAGE.proc= pre-configure @@ -200,6 +200,7 @@ pre-build: .for s in ${BLKTAP_FILES} ${CP} -f ${FILESDIR}/${s} ${WRKSRC}/blktap/drivers/ .endfor + ${CP} -f ${FILESDIR}/locking.sh ${WRKSRC}/hotplug/NetBSD/ ${SED} -e "s,@XENDCONFDIR@,${PKG_SYSCONFDIR},g" \ ${XENTOP}/docs/man/xl.pod.1 |\ pod2man >${WRKDIR}/xl.1 |