Use of vifscript requires full path unlike the example suggests

Bug #931423 reported by Stefan Bader
8
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).

Revision history for this message
Stefan Bader (smb) wrote :

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"
+
+PATH=$XEN_SCRIPT_DIR:$PATH
+
 if test "$script"
 then
     exec $script $*
 else
- exec /etc/xen/scripts/vif-bridge $*
+ exec $XEN_SCRIPT_DIR/vif-bridge $*
 fi

Changed in xen (Ubuntu):
importance: Undecided → Low
status: New → Triaged
affects: xen (Ubuntu) → xen-common (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.