Skip to content

Commit

Permalink
cmdlib: consistently use overlay/ prefix for injected overlays
Browse files Browse the repository at this point in the history
Like in e6b07ff ("cmdlib: rename `cosa-image-json` ostree overlay"),
we need the content set overlay and the `overrides/rootfs` overlay to
use that prefix. That's how `compose.sh` knows to pull it over 9p.

Fixes: coreos#2949
  • Loading branch information
jlebon authored and cgwalters committed Jun 27, 2022
1 parent d0f638d commit ea7287c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cmdlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ EOF
chmod 0644 "${tmp_overridesdir}/contentsetrootfs/usr/share/buildinfo/content_manifest.json"

echo -n "Committing ${tmp_overridesdir}/contentsetrootfs... "
commit_ostree_layer "${tmp_overridesdir}/contentsetrootfs" contentset
layers="${layers} contentset"
commit_ostree_layer "${tmp_overridesdir}/contentsetrootfs" overlay/contentset
layers="${layers} overlay/contentset"
fi

if [ -n "${layers}" ]; then
Expand All @@ -472,10 +472,10 @@ EOF
if [[ -d "${rootfs_overrides}" && -n $(ls -A "${rootfs_overrides}") ]]; then
echo -n "Committing ${rootfs_overrides}... "
touch "${overrides_active_stamp}"
commit_ostree_layer "${rootfs_overrides}" "cosa-overrides-rootfs"
commit_ostree_layer "${rootfs_overrides}" "overlay/cosa-overrides-rootfs"
cat >> "${override_manifest}" << EOF
ostree-override-layers:
- cosa-overrides-rootfs
- overlay/cosa-overrides-rootfs
EOF
fi
}
Expand Down

0 comments on commit ea7287c

Please sign in to comment.