@@ -2784,11 +2784,6 @@ def make_oci(context: Context, root_layer: Path, dst: Path) -> None:
2784
2784
else datetime .datetime .now (tz = datetime .timezone .utc )
2785
2785
).isoformat ()
2786
2786
2787
- # We could also use the default (which have a space after the punctuation symbol)
2788
- # but these make it easier to verify the output against other tools (e.g. skopeo)
2789
- # which often strip the redundant spaces.
2790
- json_args = {"separators" : ("," , ":" )}
2791
-
2792
2787
oci_config = {
2793
2788
"created" : creation_time ,
2794
2789
"architecture" : context .config .architecture .to_oci (),
@@ -2814,7 +2809,7 @@ def make_oci(context: Context, root_layer: Path, dst: Path) -> None:
2814
2809
},
2815
2810
],
2816
2811
}
2817
- oci_config_blob = json .dumps (oci_config , ** json_args )
2812
+ oci_config_blob = json .dumps (oci_config )
2818
2813
oci_config_digest = hashlib .sha256 (oci_config_blob .encode ()).hexdigest ()
2819
2814
(ca_store / oci_config_digest ).write_text (oci_config_blob )
2820
2815
@@ -2841,7 +2836,7 @@ def make_oci(context: Context, root_layer: Path, dst: Path) -> None:
2841
2836
} if context .config .image_version else {}),
2842
2837
}
2843
2838
}
2844
- oci_manifest_blob = json .dumps (oci_manifest , ** json_args )
2839
+ oci_manifest_blob = json .dumps (oci_manifest )
2845
2840
oci_manifest_digest = hashlib .sha256 (oci_manifest_blob .encode ()).hexdigest ()
2846
2841
(ca_store / oci_manifest_digest ).write_text (oci_manifest_blob )
2847
2842
@@ -2859,11 +2854,10 @@ def make_oci(context: Context, root_layer: Path, dst: Path) -> None:
2859
2854
],
2860
2855
},
2861
2856
f ,
2862
- ** json_args
2863
2857
)
2864
2858
2865
2859
with (dst / "oci-layout" ).open ("w" ) as f :
2866
- json .dump ({"imageLayoutVersion" : "1.0.0" }, f , ** json_args )
2860
+ json .dump ({"imageLayoutVersion" : "1.0.0" }, f )
2867
2861
2868
2862
2869
2863
def make_esp (context : Context , uki : Path ) -> list [Partition ]:
@@ -3154,10 +3148,7 @@ def build_image(context: Context) -> None:
3154
3148
make_tar (
3155
3149
context .root , context .staging / "rootfs.layer" ,
3156
3150
tools = context .config .tools (),
3157
- # Make sure tar uses user/group information from the root directory instead of the host.
3158
- sandbox = context .sandbox (
3159
- options = ["--ro-bind" , context .root , context .root , * finalize_passwd_mounts (context .root )],
3160
- ),
3151
+ sandbox = context .sandbox ,
3161
3152
# We do not want SELinux xattrs in OCI layers
3162
3153
# as they seldom make sense inside containers.
3163
3154
options = ["--xattrs-exclude" , "security.selinux" ],
0 commit comments