Displaying 2 results from an estimated 2 matches for "new_node_file".
2009 Jul 21
1
[PATCH node-image] Moved all temporary files into a single work directory to clean up.
...file
if [ -n "${hdsize}" ]; then
- hdfile=$(mktemp)
+ hdfile=$WORKDIR/$nodename-hd.img
create_hard_disk $hdfile $hdsize
fi
@@ -457,7 +458,7 @@ substitute_boot_device () {
local nodename=$1
local old_device=$2
local new_device=$3
- local new_node_file=$(mktemp)
+ local new_node_file=$WORKDIR/$nodename-new.xml
if [ -n "${nodename}" ]; then
local xml=$(sudo virsh dumpxml $nodename | sed "s/boot dev='"${old_device}"'/boot dev='"${new_device}"'/")
@@ -471,7 +472,7 @@ substitu...
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...name > /dev/null 2>&1
+ if $show_viewer; then
+ start_virt_viewer $nodename
+ fi
+}
+
+# $1 - the node name
+# $2 - the old boot device
+# $3 - the new boot device
+substitute_boot_device () {
+ local nodename=$1
+ local old_device=$2
+ local new_device=$3
+ local new_node_file=$WORKDIR/$nodename-new.xml
+
+ if [ -n "${nodename}" ]; then
+ local xml=$(sudo virsh dumpxml $nodename | sed "s/boot dev='"${old_device}"'/boot dev='"${new_device}"'/")
+
+ sudo printf "${xml}" > $new_node_file
+...