1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2025-12-20 02:18:37 +00:00

Use OCI archive in hassio import to fix Containerd snapshotter issues (#4393)

Importing docker-archive format leads to some layers missing in the content
storage which results in some image metadata missing. This appears to be the
same regression as moby/moby#49473. Importing OCI archives when bootstrapping
the data partition seems to work this bug around.

Fixes #4385
This commit is contained in:
Jan Čermák
2025-11-11 15:39:50 +01:00
committed by GitHub
parent dcb3acd949
commit 55655f5a50

View File

@@ -52,7 +52,7 @@ dst_image_file_path="${dst_dir}/${image_file_name}.tar"
if [ ! -f "${image_file_path}" ] if [ ! -f "${image_file_path}" ]
then then
echo "Fetching image: ${full_image_name} (digest ${image_digest})" echo "Fetching image: ${full_image_name} (digest ${image_digest})"
retry 3 "skopeo copy 'docker://${image_name}@${image_digest}' 'docker-archive:${image_file_path}:${full_image_name}'" retry 3 "skopeo copy 'docker://${image_name}@${image_digest}' 'oci-archive:${image_file_path}:${full_image_name}'"
else else
echo "Skipping download of existing image: ${full_image_name} (digest ${image_digest})" echo "Skipping download of existing image: ${full_image_name} (digest ${image_digest})"
fi fi