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
(cherry picked from commit ea7287c)

dustymabe: This cherry pick needed manual merge conflict resolution.
  • Loading branch information
jlebon authored and dustymabe committed Nov 10, 2022
1 parent 88a1a32 commit 32344cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmdlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,12 @@ EOF
if [[ -d "${rootfs_overrides}" && -n $(ls -A "${rootfs_overrides}") ]]; then
echo -n "Committing ${rootfs_overrides}... "
touch "${overrides_active_stamp}"
ostree commit --repo="${tmprepo}" --tree=dir="${rootfs_overrides}" -b cosa-overrides-rootfs \
ostree commit --repo="${tmprepo}" --tree=dir="${rootfs_overrides}" -b overlay/cosa-overrides-rootfs \
--owner-uid 0 --owner-gid 0 --no-xattrs --no-bindings --parent=none \
--timestamp "${git_timestamp}"
cat >> "${override_manifest}" << EOF
ostree-override-layers:
- cosa-overrides-rootfs
- overlay/cosa-overrides-rootfs
EOF
fi
}
Expand Down

0 comments on commit 32344cd

Please sign in to comment.