]> git.entuzijast.net Git - imunes.git/commitdiff
zbog odvojenih filesystema po VEovima, moramo skriptu jednostavno iskopirati u VE...
authorJosip Rodin <joy@numa-ubuntu-vm.(none)>
Sun, 13 Sep 2009 14:33:12 +0000 (16:33 +0200)
committerJosip Rodin <joy@numa-ubuntu-vm.(none)>
Sun, 13 Sep 2009 14:33:12 +0000 (16:33 +0200)
linux/exec.tcl

index f8a2789a8d693fb15d04013f3012e7bf4fd71427..4d8246393a3fa1ddc6e816127e586174b0117457 100755 (executable)
@@ -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 != ""} {