Commit c155a9db authored by Leigh Stoller's avatar Leigh Stoller

Add "imageable" to node_types field to control whether user can

create images from/for each node type. Use this in the newimageid
forms to present a shortened list of node types. Also, add a footnote
explaining typical usage.
parent fb144cfc
......@@ -25,10 +25,14 @@ if (! count($projlist)) {
}
#
# Need a list of node types.
# Need a list of node types. We join this over the nodes table so that
# we get a list of just the nodes that currently in the testbed, not
# just in the node_types table.
#
$types_result =
DBQueryFatal("select distinct type from nodes where role='testnode'");
DBQueryFatal("select distinct n.type from nodes as n ".
"left join node_types as nt on n.type=nt.type ".
"where nt.imageable=1");
#
# Helper function to write out a menu.
......@@ -365,6 +369,11 @@ function SPITFORM($formfields, $errors)
<li>The image file must reside in the project directory.
<li>Specify the node types that this image will be able
to work on (ie: can be loaded on and expected to work).
Typically, images will work on all of the \"pc\" types when
you are customizing one of the default images. However,
if you are installing your own OS from scratch, or you are
using DOS partition four, then this might not be true.
Feel free to ask us!
<li>If you already have a node customized, enter that node
name (pcXXX) and the image will be auto created for you.
Notification of completion will be sent to you via email.
......
......@@ -41,10 +41,14 @@ if (! count($projlist)) {
}
#
# Need a list of node types.
# Need a list of node types. We join this over the nodes table so that
# we get a list of just the nodes that currently in the testbed, not
# just in the node_types table.
#
$types_result =
DBQueryFatal("select distinct type from nodes where role='testnode'");
DBQueryFatal("select distinct n.type from nodes as n ".
"left join node_types as nt on n.type=nt.type ".
"where nt.imageable=1");
#
# Spit the form out using the array of data.
......@@ -331,6 +335,11 @@ function SPITFORM($formfields, $errors)
</ul>
<li> Specify the node types that this image will be able
to work on (can be loaded on and expected to work).
Typically, images will work on all of the \"pc\" types when
you are customizing one of the standard images. However,
if you are installing your own OS from scratch, or you are
using DOS partition four, then this might not be true.
Feel free to ask us!
<li> If you already have a node customized, enter that node
name (pcXXX) and the image will be auto created for you.
Notification of completion will be sent to you via email.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment