buildextend-live: allow live/ configs without embed areas
FCOS and RHCOS (after https://github.com/openshift/os/pull/479) do have
them, but let's not make it a hard requirement.
We can add a switch or knob in `image.yaml` in the future to make it so
if we'd like.
@@ -366,6 +366,7 @@ def generate_iso():
shutil.copystat(srcfile, dstfile)
print(f'{srcfile} -> {dstfile}')
+ if len(files_with_karg_embed_areas) > 0:
assert(karg_embed_area_length > len(cmdline))
with open(os.path.join(tmpisoroot, '.cmdline'), 'w') as fh:
fh.write('#' * karg_embed_area_length)
