- Start hyper-v helpers manually with helper script in inst-sys

OBS-URL: https://build.opensuse.org/package/show/Virtualization/hyper-v?expand=0&rev=93
This commit is contained in:
Olaf Hering 2014-05-21 10:06:32 +00:00 committed by Git OBS Bridge
parent 8476439df4
commit a50ee553aa
2 changed files with 31 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 21 12:05:31 CEST 2014 - ohering@suse.de
- Start hyper-v helpers manually with helper script in inst-sys
-------------------------------------------------------------------
Thu Apr 10 19:19:04 CEST 2014 - ohering@suse.de

View File

@ -195,6 +195,32 @@ EOF
#
head -n 42 ${d}/*.rules
#
helper=inst_sys.sh
cat > $RPM_BUILD_ROOT${bindir}/${helper} <<EOF
#!/bin/bash
# Starting daemons via RUN== in udev rules is not supported.
# In inst-sys systemd is not used, so start all daemons manually.
if test -d /sys/bus/vmbus/devices
then
export PATH=${bindir}:\$PATH
echo -n "Starting hyper-v helpers:"
for i in \
%{hv_kvp_daemon} \
%{hv_vss_daemon} \
%{hv_fcopy_daemon}
do
if mkdir /run/\$i
then
echo -n " \$i"
\$i < /dev/null &
fi
done
echo " ... done"
fi
EOF
chmod 755 $RPM_BUILD_ROOT${bindir}/${helper}
head -n 123 $RPM_BUILD_ROOT${bindir}/${helper}
#
%else
mkdir -p $RPM_BUILD_ROOT/etc/init.d
install -m755 %{S:11} $RPM_BUILD_ROOT/etc/init.d/%{hv_kvp_daemon}