This commit is contained in:
parent
fc0fbf96a9
commit
d64e0ba202
@ -124,7 +124,7 @@ install -m644 %SOURCE1 $RPM_BUILD_ROOT/etc/modprobe.d/hyperv_pvdrivers.conf
|
|||||||
%post
|
%post
|
||||||
if test -d /sys/class/dmi/id
|
if test -d /sys/class/dmi/id
|
||||||
then
|
then
|
||||||
cd /sys/class/dmi/id
|
pushd /sys/class/dmi/id > /dev/null
|
||||||
board_vendor=
|
board_vendor=
|
||||||
if test -r board_vendor
|
if test -r board_vendor
|
||||||
then
|
then
|
||||||
@ -140,6 +140,7 @@ then
|
|||||||
if test "${product_name}" = "Virtual Machine"
|
if test "${product_name}" = "Virtual Machine"
|
||||||
then
|
then
|
||||||
echo "Enabling hv_kvp_daemon on '${product_name}' from '${board_vendor}'"
|
echo "Enabling hv_kvp_daemon on '${product_name}' from '${board_vendor}'"
|
||||||
|
popd > /dev/null
|
||||||
%{fillup_and_insserv -Y hv_kvp_daemon}
|
%{fillup_and_insserv -Y hv_kvp_daemon}
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user