diff --git a/hyper-v.spec b/hyper-v.spec index c0f901c..b8c51cf 100644 --- a/hyper-v.spec +++ b/hyper-v.spec @@ -124,7 +124,7 @@ install -m644 %SOURCE1 $RPM_BUILD_ROOT/etc/modprobe.d/hyperv_pvdrivers.conf %post if test -d /sys/class/dmi/id then - cd /sys/class/dmi/id + pushd /sys/class/dmi/id > /dev/null board_vendor= if test -r board_vendor then @@ -140,6 +140,7 @@ then if test "${product_name}" = "Virtual Machine" then echo "Enabling hv_kvp_daemon on '${product_name}' from '${board_vendor}'" + popd > /dev/null %{fillup_and_insserv -Y hv_kvp_daemon} exit 0 fi