Skip to content

Instantly share code, notes, and snippets.

@n0ts
Created June 6, 2011 15:04
Show Gist options
  • Save n0ts/1010420 to your computer and use it in GitHub Desktop.
Save n0ts/1010420 to your computer and use it in GitHub Desktop.
Patch for Xen 4.1.0 /etc/init.d/xendomains
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