it is expected to be a colon separated string denoting
tty - baudrate - parity - bits
e.g. ttyS0:115200:n:8
+ - 'variant:<variantname>'
+ passed to build.sh as -V <variant>
+ variants are used to run a different kernel on the bootCD
+ see kvariant.sh for how to create a variant
Security:
- Non-admins can only generate files for nodes at their sites.
optdict['serial']='default'
elif option.find("serial:") == 0:
optdict['serial']=option.replace("serial:","")
+ elif option.find("variant:") == 0:
+ optdict['variant']=option.replace("variant:","")
else:
raise PLCInvalidArgument, "unknown option %s"%option
# make build's arguments
serial_arg=""
if "cramfs" in optdict: type += "_cramfs"
- if "serial" in optdict: serial_arg = "-s %s"%optdict['serial']
+ if "serial" in optdict: serial_arg += " -s %s"%optdict['serial']
+ if "variant" in optdict: serial_arg += " -V %s"%optdict['variant']
log_file="%s.log"%node_image
# invoke build.sh
build_command = '%s -f "%s" -o "%s" -t "%s" %s &> %s' % (self.BOOTCDBUILD,