I designated the old way to do things as 'legacy' a long time ago. But
then the work stalled. To facilitate co-existance, old legacy files will
need to have 'legacy' at the top. This will preserve all the old
behavior as new ways to build are rolled out. The legacy plan is the
default for now, but one day we'll have no default and failure to select
a plan will be an error.
As a transition hack, if no plan is defined, include legacy.sh like we
used to do. Since this is after the config stage, we only define the
imaging functions in legacy.sh:
calculate_partitioning
create_code_slice
create_diskimage
if they aren't already defined.
For the embedded configs, set NANO_PLAN=embedded so we don't include
legacy.sh.
Sponsored by: Netflix