Created
August 1, 2020 07:19
-
-
Save julien-f/a6f98de3bd5a775f3f04b2fa14a9a102 to your computer and use it in GitHub Desktop.
xenstore-read work-around for VMWare
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
#!/bin/sh | |
case "${1:-}" in | |
vm) | |
uuid=$(cat /sys/devices/virtual/dmi/id/product_uuid) | |
echo "/vm/$uuid" | |
;; | |
*) | |
echo 'xenstore-read error: ENOENT' >&2 | |
exit 1 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment