- bnc#685338: Fix porting of xend-domain-lock.patch
- update scripts to use xl instead of xm: xen-updown.sh, init.xendomains, xmclone.sh - disable xend in openSuSE > 11.4 the xl command is the replacement for the xm command - mark runlevel scripts as config to preserve local changes by admin or dev during package update - enable xencommons runlevel script during upgrade if xend was already enabled - call /sbin/ldconfig directly in xen-libs post install scripts OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=110
This commit is contained in:
@@ -36,6 +36,7 @@ PART=2
|
||||
DOMU_IS_FILE_BASED=
|
||||
DOMU_ROOTDEV=
|
||||
FORCE=no
|
||||
xm_cmd=xl
|
||||
|
||||
|
||||
#
|
||||
@@ -481,11 +482,11 @@ fi
|
||||
#
|
||||
# Make sure that the source VM is not running
|
||||
#
|
||||
xmid=`xm domid "$SOURCE" 2>/dev/null`
|
||||
xmid=`${xm_cmd} domid "$SOURCE" 2>/dev/null`
|
||||
if [ $? -eq 0 ] && [ -n "$xmid" ] && [ -z "${xmid//[[:digit:]]/}" ]
|
||||
then
|
||||
echo "domU $SOURCE is currently running on Xen, please shutdown before cloning." >&2
|
||||
echo "The command \"xm shutdown $xmid -w\" will shutdown the domU" >&2
|
||||
echo "The command \"${xm_cmd} shutdown $xmid -w\" will shutdown the domU" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user