From f187e805c41bdf531eab7c2e240fad697af2b5bb Mon Sep 17 00:00:00 2001 From: Josip Rodin Date: Sun, 13 Sep 2009 16:33:12 +0200 Subject: [PATCH] zbog odvojenih filesystema po VEovima, moramo skriptu jednostavno iskopirati u VE prije pokretanja --- linux/exec.tcl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/linux/exec.tcl b/linux/exec.tcl index f8a2789..4d82463 100755 --- a/linux/exec.tcl +++ b/linux/exec.tcl @@ -529,8 +529,11 @@ proc l3node.start { eid node } { } else { # quagga i drugi mogu imati svoje custom skripte za bootanje koja se prepoznaje po # bootcmdu (interpreteru) koji nije obican shell - set command "$bootcmd boot.conf" - puts " will now execute $command in $node_id" + puts " placing $bootcmd in $node_dir" + set bootfile [file tail $bootcmd] + file copy $bootcmd "$node_dir/$bootfile" + set command "/$bootfile boot.conf" + puts " will now execute $command in $node_id" # catch nexec vimage $node_id $bootcmd $node_dir/boot.conf >& $node_dir/out.log &" catch { nexec vzctl exec $node_id $command } ret if { $ret != "TCL_OK" && $ret != ""} { -- 2.39.5