Skip to content

Commit 242d152

Browse files
committed
cmdlib: rename some variables
After the previous commit, that overlay is no longer just about JSON files. Rename it to something more accurate. No functional change here.
1 parent 230139d commit 242d152

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/cmdlib.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -429,17 +429,16 @@ EOF
429429
# Store the fully rendered disk image config (image.json)
430430
# and the platform (platforms.json) if it exists inside
431431
# the ostree commit, so it can later be extracted by disk image
432-
# builds.
433-
local jsondir="${tmp_overridesdir}/jsons"
434-
mkdir -p "${jsondir}/usr/share/coreos-assembler/"
435-
cp "${image_json}" "${jsondir}/usr/share/coreos-assembler/"
432+
# builds. Also the full contents of the live/ directory.
433+
local usr_share_cosa="${tmp_overridesdir}/usr-share-cosa"
434+
mkdir -p "${usr_share_cosa}/usr/share/coreos-assembler/"
435+
cp "${image_json}" "${usr_share_cosa}/usr/share/coreos-assembler/"
436436
if [ -f "${platforms_json}" ]; then
437-
cp "${platforms_json}" "${jsondir}/usr/share/coreos-assembler/"
437+
cp "${platforms_json}" "${usr_share_cosa}/usr/share/coreos-assembler/"
438438
fi
439-
# also the full contents of the live/ directory
440-
cp -r "${configdir}/live" "${jsondir}/usr/share/coreos-assembler/live"
441-
commit_overlay cosa-json "${jsondir}"
442-
layers="${layers} overlay/cosa-json"
439+
cp -r "${configdir}/live" "${usr_share_cosa}/usr/share/coreos-assembler/live"
440+
commit_overlay usr-share-cosa "${usr_share_cosa}"
441+
layers="${layers} overlay/usr-share-cosa"
443442

444443
local_overrides_lockfile="${tmp_overridesdir}/local-overrides.json"
445444
if [ -n "${with_cosa_overrides}" ] && [[ -n $(ls "${overridesdir}/rpm/"*.rpm 2> /dev/null) ]]; then

0 commit comments

Comments
 (0)