Accepting request 260839 from Virtualization
1 OBS-URL: https://build.opensuse.org/request/show/260839 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hyper-v?expand=0&rev=26
This commit is contained in:
commit
33308dc55a
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 09 04:39:00 UTC 2014 - Led <ledest@gmail.com>
|
||||||
|
|
||||||
|
- fix bashisms in pre/post scripts
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 30 15:41:02 UTC 2014 - ohering@suse.de
|
Tue Sep 30 15:41:02 UTC 2014 - ohering@suse.de
|
||||||
|
|
||||||
|
@ -247,8 +247,9 @@ ln -sfvbn ../../etc/init.d/%{hv_vss_daemon} $RPM_BUILD_ROOT${bindir}/rc%{hv_vss_
|
|||||||
# move them to /var/lib and remove old directory, if possible.
|
# move them to /var/lib and remove old directory, if possible.
|
||||||
if test -d /var/opt/hyperv
|
if test -d /var/opt/hyperv
|
||||||
then
|
then
|
||||||
if mkdir -p -v -m 0755 /var/lib/hyperv && pushd /var/lib/hyperv > /dev/null
|
if mkdir -p -v -m 0755 /var/lib/hyperv
|
||||||
then
|
then
|
||||||
|
cd /var/lib/hyperv
|
||||||
for oldfile in /var/opt/hyperv/ifcfg-* /var/opt/hyperv/.kvp_pool_*
|
for oldfile in /var/opt/hyperv/ifcfg-* /var/opt/hyperv/.kvp_pool_*
|
||||||
do
|
do
|
||||||
if test -e "${oldfile}"
|
if test -e "${oldfile}"
|
||||||
@ -256,7 +257,7 @@ then
|
|||||||
mv -vfb "${oldfile}" . || :
|
mv -vfb "${oldfile}" . || :
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
popd > /dev/null
|
cd - >/dev/null
|
||||||
fi
|
fi
|
||||||
rmdir -v /var/opt/hyperv || :
|
rmdir -v /var/opt/hyperv || :
|
||||||
fi
|
fi
|
||||||
@ -267,7 +268,7 @@ fi
|
|||||||
%post
|
%post
|
||||||
board_vendor=
|
board_vendor=
|
||||||
product_name=
|
product_name=
|
||||||
if pushd /sys/class/dmi/id > /dev/null 2>/dev/null
|
if cd /sys/class/dmi/id 2>/dev/null
|
||||||
then
|
then
|
||||||
if test -r board_vendor
|
if test -r board_vendor
|
||||||
then
|
then
|
||||||
@ -277,7 +278,7 @@ then
|
|||||||
then
|
then
|
||||||
product_name="`cat product_name`"
|
product_name="`cat product_name`"
|
||||||
fi
|
fi
|
||||||
popd > /dev/null
|
cd - >/dev/null
|
||||||
fi
|
fi
|
||||||
if test "${board_vendor}" = "Microsoft Corporation" -a "${product_name}" = "Virtual Machine"
|
if test "${board_vendor}" = "Microsoft Corporation" -a "${product_name}" = "Virtual Machine"
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user