forked from altcloud/fence-virt
Install modules, too.
This commit is contained in:
parent
6ff52eecf9
commit
1e3ee504f9
@ -56,6 +56,11 @@ install: all
|
||||
install -d /usr/sbin; \
|
||||
fi
|
||||
install -m755 ${TARGETS} /usr/sbin
|
||||
# XXX hardcoded sbin
|
||||
if [ ! -d /usr/lib64/fence_virt ]; then \
|
||||
install -d /usr/lib64/fence_virt ; \
|
||||
fi
|
||||
install -m755 ${MODULES} /usr/lib64/fence_virt
|
||||
|
||||
clean:
|
||||
rm -f ${TARGETS} *.o *.d *~
|
||||
|
@ -68,12 +68,16 @@ main(int argc, char **argv)
|
||||
if (plugin_load("./libvirt.so") < 0) {
|
||||
printf("Doom\n");
|
||||
}
|
||||
if (plugin_load("/usr/lib64/fence_virt/libvirt.so") < 0) {
|
||||
printf("Doom\n");
|
||||
}
|
||||
#endif
|
||||
plugin_dump();
|
||||
|
||||
p = plugin_find(val);
|
||||
if (!p) {
|
||||
printf("Could not find plugin \"%s\n", val);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (p->init(&libvirt_context, config) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user