Created
June 6, 2011 15:04
-
-
Save n0ts/1010420 to your computer and use it in GitHub Desktop.
Patch for Xen 4.1.0 /etc/init.d/xendomains
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
184,185c184 | |
< NM=$($CMD create --quiet --dryrun --defconfig "$1" | | |
< sed -n 's/^.*(name \(.*\))$/\1/p') | |
--- | |
> NM=$(cat "$1" | sed -n 's/^.*<name>\(.*\)<\/name>$/\1/p') | |
286c285 | |
< shortdom=$(echo $dom | sed -n 's/^.*\/\(.*\)$/\1/p') | |
--- | |
> shortdom=$(echo $dom | sed -n 's/^.*\/\(.*\)\.xml$/\1/p') | |
291c290 | |
< XMC=`$CMD create --quiet --defconfig $dom` | |
--- | |
> XMC=`virsh create $dom > /dev/null` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment