Merge "Debian KS: Adds starlingx to ostree branches for non-controller nodes"

This commit is contained in:
Zuul 2022-09-12 14:13:53 +00:00 committed by Gerrit Code Review
commit ed1704d131
1 changed files with 9 additions and 1 deletions

View File

@ -2347,7 +2347,15 @@ if [ "${controller}" = true ] ; then
ln -s ../../pxelinux.cfg/grub.cfg
fi
popd > /dev/null
else
# This is used by patching.
# For non-controller system node installs (worker/storage) we need to
# update the ostree remote to be the url to the pxecontroller's ostree_repo
# and set the remote debian branches to starlingx.
feed_branch="starlingx"
ilog "Replacing ostree sysroot remote with: ${feed_branch}"
ostree --repo=/sysroot/ostree/repo remote delete ${instname}
ostree --repo=/sysroot/ostree/repo remote add ${instname} ${insturl} ${feed_branch}
fi
# Save the install scripts and kickstart logs