Use of vifscript requires full path unlike the example suggests
Bug #931423 reported by
Stefan Bader
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xen-common (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
The example (commented out by default) in /etc/xl.conf suggest that the script will be found if it is in /etc/xen/scripts. This is not true and enabling the example as is results in no network connection (vif-bridge is not called).
To post a comment you must log in.
The following change to vif-setup will allow vifscript to be used without an explicit path:
@@ -1,9 +1,13 @@
#!/bin/bash
+. "$(dirname $0)/hotplugpath.sh" XEN_SCRIPT_ DIR:$PATH scripts/ vif-bridge $* DIR/vif- bridge $*
+
+PATH=$
+
if test "$script"
then
exec $script $*
else
- exec /etc/xen/
+ exec $XEN_SCRIPT_
fi