Debian: Assign the sysroot ostree remote to the feed
These changes are to support ostree pull that take place as a part of host-install step. The ostree commands used by patching require these entries. Replacing the sysroot ostree config entry: [remote "debian"] url=file://NOT_SET with: [remote "debian"] url=file:///var/www/pages/feed/rel{VER}/ostree_repo/ branches:starlingx; Test Plan: Build / Boot / Bootstrap / Unlock / Reboot AIO-SX Verify no patch alarms Story: 2009969 Task: 45437 Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: I71f7c791a7f36e9d1480b7479a5bfc55f372d358
This commit is contained in:
parent
e86cf0de49
commit
99cf42bb7d
@ -1981,6 +1981,16 @@ if [ "${controller}" = true -a ${OSTREE_REPO_FETCHED} -eq 0 ] ; then
|
|||||||
fi
|
fi
|
||||||
ostree --repo=${repo} pull ${pull_options} ${instbr}:${instbr}
|
ostree --repo=${repo} pull ${pull_options} ${instbr}:${instbr}
|
||||||
|
|
||||||
|
# This is used by patching
|
||||||
|
# - change the sysroot remote from NOT_SET to the new feed location
|
||||||
|
if [ "${insturl}" = "file://NOT_SET" ] ; then
|
||||||
|
file_feed="file:///var/www/pages/feed/rel-${sw_release}/ostree_repo/"
|
||||||
|
feed_branch="starlingx"
|
||||||
|
ilog "Replacing ostree sysroot remote with: ${file_feed} ${feed_branch}"
|
||||||
|
ostree --repo=/sysroot/ostree/repo remote delete ${instname}
|
||||||
|
ostree --repo=/sysroot/ostree/repo remote add ${instname} ${file_feed} ${feed_branch}
|
||||||
|
fi
|
||||||
|
|
||||||
# TODO: Figure out a way on the second run /sysroot/ostree/2
|
# TODO: Figure out a way on the second run /sysroot/ostree/2
|
||||||
# to avoid this error string
|
# to avoid this error string
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user