summaryrefslogtreecommitdiffstats
path: root/main/xe-guest-utilities/xe-update-guest-attrs_466.patch
diff options
context:
space:
mode:
authorCedric Schieli <cschieli@gmail.com>2010-04-30 16:08:04 +0000
committerCedric Schieli <cschieli@gmail.com>2010-04-30 16:08:04 +0000
commit435452021c2f591c3afafdd4bba32ecfeb42829c (patch)
tree9280b3d77fd22409f3f4269685e83ce4a5142f47 /main/xe-guest-utilities/xe-update-guest-attrs_466.patch
parente79c2b3d99cd36cc85cf1a4acb2f9ac86ce10620 (diff)
downloadaports-master.tar.bz2
aports-master.tar.xz
main/xe-guest-utilities: update to version 5.5.0-466HEADmaster
Diffstat (limited to 'main/xe-guest-utilities/xe-update-guest-attrs_466.patch')
-rw-r--r--main/xe-guest-utilities/xe-update-guest-attrs_466.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/xe-guest-utilities/xe-update-guest-attrs_466.patch b/main/xe-guest-utilities/xe-update-guest-attrs_466.patch
new file mode 100644
index 00000000..c0ef7929
--- /dev/null
+++ b/main/xe-guest-utilities/xe-update-guest-attrs_466.patch
@@ -0,0 +1,32 @@
+--- 458/usr/sbin/xe-update-guest-attrs
++++ 466/usr/sbin/xe-update-guest-attrs
+@@ -82,6 +82,20 @@
+ return 1
+ }
+
++# If we detect a domain change then delete our cache and force a refresh
++domid=$(xenstore-read "domid")
++cache=/var/cache/xenstore/unique-domain-id
++newval=$(xenstore-read "/local/domain/${domid}/unique-domain-id")
++if [ -e $cache ]; then
++ oldval=$(cat "$cache")
++ if [ "$oldval" != "$newval" ]; then
++ # domain changed
++ rm -rf /var/cache/xenstore
++ fi
++fi
++mkdir -p $(dirname "$cache")
++echo -n "$newval" > "$cache"
++
+ xenstore_rm_cached() {
+ key="$1"
+ cache=/var/cache/xenstore/$key
+@@ -195,7 +209,7 @@
+ xenstore_write_cached "attr/PVAddons/MajorVersion" "5"
+ xenstore_write_cached "attr/PVAddons/MinorVersion" "5"
+ xenstore_write_cached "attr/PVAddons/MicroVersion" "0"
+-xenstore_write_cached "attr/PVAddons/BuildVersion" "17913"
++xenstore_write_cached "attr/PVAddons/BuildVersion" "25727"
+ xenstore_write_cached "attr/PVAddons/Installed" "1"
+
+ # update xenstore if necc