Displaying 3 results from an estimated 3 matches for "substitute_boot_device".
2009 Jul 21
1
[PATCH node-image] Moved all temporary files into a single work directory to clean up.
...ot; ]; then memory="524288"; fi
@@ -375,7 +376,7 @@ configure_node () {
# create the hard disk 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='"${o...
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...debug "boot_from_hd ()"
+ debug "::nodename: ${nodename}"
+
+ sudo virsh start $nodename > /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='...
2009 May 19
1
[PATCH node-image] Fixing the autotest script.
...up="${dns_startup} --dhcp-host=${macaddress},${NODE_ADDRESS}"
fi
@@ -407,8 +406,7 @@ tests=''; testcount=0;
# $1 - test name
add_test () {
- tests[$testcount]=$1
- testcount=$testcount+1
+ tests="${tests} $1"
}
# $1 - node name
@@ -470,19 +468,20 @@ substitute_boot_device () {
fi
}
-add_test "test_stateless_pxe_with_nohd"
-test_stateless_pxe_with_nohd () {
- local nodename="${vm_prefix}-stateless-pxe-nohd"
+add_test "test_stateless_pxe"
+test_stateless_pxe () {
+ local nodename="${vm_prefix}-stateless-pxe"
l...