src/hack-ign-3to2: add support for merge->append
@@ -38,6 +38,12 @@ for f in ign['storage'].get('files', []):
if len(append) != 1:
raise SystemExit(f"Can't handle multiple append: {f['path']}")
f['contents'] = append[0]
+
+# replace the merge keyword with append
+merge = ign['ignition'].pop('merge')
+if merge is not None:
+ ign['ignition']['append'] = merge
+
json.dump(ign, sys.stdout)
