Browse code

XenAPI: Add another plugin directory

Buildroot on 64-bit systems may use /usr/lib64 to store the XAPI plugins
Add this as an option to search for.

The list is getting of acceptable paths is getting longer but some work is going
on in XAPI to allow us to query for this path, which will mean we can get
rid of this list in future.

Change-Id: I79aafb6a86032c7ab04937c9e9bec08661ecdefa

Bob Ball authored on 2014/12/10 02:37:03
Showing 1 changed files
... ...
@@ -10,7 +10,7 @@ function die_with_error {
10 10
 }
11 11
 
12 12
 function xapi_plugin_location {
13
-    for PLUGIN_DIR in "/etc/xapi.d/plugins/" "/usr/lib/xcp/plugins/" "/usr/lib/xapi/plugins"; do
13
+    for PLUGIN_DIR in "/etc/xapi.d/plugins/" "/usr/lib/xcp/plugins/" "/usr/lib/xapi/plugins" "/usr/lib64/xapi/plugins"; do
14 14
         if [ -d $PLUGIN_DIR ]; then
15 15
             echo $PLUGIN_DIR
16 16
             return 0