X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fnodes%2Fnode_downloads.php;h=c037c1a7bcbfba614ea071e5956a2034975873b5;hb=2acd8f63883ad55c2c3c204d3b11db86da3417d2;hp=c457934ae3955d43c7c1e56bdb8e13171bda32a6;hpb=9699127454f02cca42f1fceed81ded05a3e3765e;p=plewww.git diff --git a/planetlab/nodes/node_downloads.php b/planetlab/nodes/node_downloads.php index c457934..c037c1a 100644 --- a/planetlab/nodes/node_downloads.php +++ b/planetlab/nodes/node_downloads.php @@ -1,7 +1,5 @@ GetNodes( array( $node_id ) ); $node = $nodes[0]; @@ -196,18 +185,26 @@ switch ($action) { case 'download-node-floppy': $boot_action='node-floppy'; $location = "%d/%n-%v-rename-into-plnode%s"; + $options = array(); break; case 'download-node-iso': $boot_action='node-iso'; $location = "%d/%n-%a-%v%s"; + $options = array(); break; case 'download-node-usb': $boot_action='node-usb'; $location = "%d/%n-%a-%v%s"; + $options = array(); + break; + case "download-node-usb-partition": + $boot_action='node-usb'; + $location = "%d/%n-%a-%v-partition%s"; + $options = array('partition'); break; } - $filename=$api->GetBootMedium($node_id,$boot_action,$location); + $filename=$api->GetBootMedium($node_id,$boot_action,$location,$options); $error=$api->error(); if (empty($error) && empty($filename)) { $error="Unexpected error from GetBootMedium - probably wrong directory modes"; @@ -248,7 +245,10 @@ EOF; $details->start(); if( ! $interface ) { + print ("
"); print (plc_warning("This node has no configured primary interface.")); + print ("You can add one " . href(l_interface_add($node_id), "here ")); + print ("
"); } else { $details->tr(l_node_t($node_id,"Node details"),"center"); $details->th_td("node_id",$node_id);