Skip to content

Commit

Permalink
Merge pull request #1729 from flatcar/kai/sysext-merge-contents
Browse files Browse the repository at this point in the history
build_sysext: Remove any opaque directory markers
  • Loading branch information
pothos authored Mar 5, 2024
2 parents 6c2c11d + 5aecc0a commit a2aa30f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build_sysext
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ all_fields=(
"ARCHITECTURE=${ARCH}"
)
printf '%s\n' "${all_fields[@]}" >"${BUILD_DIR}/install-root/usr/lib/extension-release.d/extension-release.${SYSEXTNAME}"

info "Removing opaque directory markers to always merge all contents"
find "${BUILD_DIR}/install-root" -xdev -type d -exec sh -c 'if [ "$(attr -R -q -g overlay.opaque {} 2>/dev/null)" = y ]; then attr -R -r overlay.opaque {}; fi' \;

mksquashfs "${BUILD_DIR}/install-root" "${BUILD_DIR}/${SYSEXTNAME}.raw" \
-noappend -comp "${FLAGS_compression}" ${FLAGS_mksquashfs_opts}
rm -rf "${BUILD_DIR}"/{fs-root,install-root,workdir}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed that systemd-sysext images can extend directories where Flatcar extensions are also shipping files, e.g., that the sysext-bakery Kubernetes extension works when OEM extensions are present ([sysext-bakery#50](https://github.com/flatcar/sysext-bakery/issues/50))

0 comments on commit a2aa30f

Please sign in to comment.