@@ -2818,11 +2818,6 @@ def make_oci(context: Context, root_layer: Path, dst: Path) -> None:
2818
2818
else datetime .datetime .now (tz = datetime .timezone .utc )
2819
2819
).isoformat ()
2820
2820
2821
- # We could also use the default (which have a space after the punctuation symbol)
2822
- # but these make it easier to verify the output against other tools (e.g. skopeo)
2823
- # which often strip the redundant spaces.
2824
- json_args = {"separators" : ("," , ":" )}
2825
-
2826
2821
oci_config = {
2827
2822
"created" : creation_time ,
2828
2823
"architecture" : context .config .architecture .to_oci (),
@@ -2848,7 +2843,7 @@ def make_oci(context: Context, root_layer: Path, dst: Path) -> None:
2848
2843
},
2849
2844
],
2850
2845
}
2851
- oci_config_blob = json .dumps (oci_config , ** json_args )
2846
+ oci_config_blob = json .dumps (oci_config )
2852
2847
oci_config_digest = hashlib .sha256 (oci_config_blob .encode ()).hexdigest ()
2853
2848
(ca_store / oci_config_digest ).write_text (oci_config_blob )
2854
2849
@@ -2875,7 +2870,7 @@ def make_oci(context: Context, root_layer: Path, dst: Path) -> None:
2875
2870
} if context .config .image_version else {}),
2876
2871
}
2877
2872
}
2878
- oci_manifest_blob = json .dumps (oci_manifest , ** json_args )
2873
+ oci_manifest_blob = json .dumps (oci_manifest )
2879
2874
oci_manifest_digest = hashlib .sha256 (oci_manifest_blob .encode ()).hexdigest ()
2880
2875
(ca_store / oci_manifest_digest ).write_text (oci_manifest_blob )
2881
2876
@@ -2893,11 +2888,10 @@ def make_oci(context: Context, root_layer: Path, dst: Path) -> None:
2893
2888
],
2894
2889
},
2895
2890
f ,
2896
- ** json_args
2897
2891
)
2898
2892
2899
2893
with (dst / "oci-layout" ).open ("w" ) as f :
2900
- json .dump ({"imageLayoutVersion" : "1.0.0" }, f , ** json_args )
2894
+ json .dump ({"imageLayoutVersion" : "1.0.0" }, f )
2901
2895
2902
2896
2903
2897
def make_esp (context : Context , uki : Path ) -> list [Partition ]:
@@ -3188,10 +3182,7 @@ def build_image(context: Context) -> None:
3188
3182
make_tar (
3189
3183
context .root , context .staging / "rootfs.layer" ,
3190
3184
tools = context .config .tools (),
3191
- # Make sure tar uses user/group information from the root directory instead of the host.
3192
- sandbox = context .sandbox (
3193
- options = ["--ro-bind" , context .root , context .root , * finalize_passwd_mounts (context .root )],
3194
- ),
3185
+ sandbox = context .sandbox ,
3195
3186
# We do not want SELinux xattrs in OCI layers
3196
3187
# as they seldom make sense inside containers.
3197
3188
options = ["--xattrs-exclude" , "security.selinux" ],
0 commit comments