mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 02:47:56 +01:00
Use bootc when available (#33)
This commit is contained in:
parent
c4a0406395
commit
38f41f7acc
3 changed files with 60 additions and 17 deletions
7
lorax_templates/scripts/post/configure_upgrades
Normal file
7
lorax_templates/scripts/post/configure_upgrades
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<%page args="image_repo, _image_repo_double_escaped, image_name, image_tag"/>
|
||||
if (which bootc &> /dev/null)
|
||||
then
|
||||
bootc switch ${image_repo}/${image_name}:${image_tag}
|
||||
else
|
||||
sed -i 's/container-image-reference=.*/container-image-reference=ostree-image-signed:docker:\/\/${_image_repo_double_escaped}\/${image_name}:${image_tag}/' /ostree/deploy/default/deploy/*.origin
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue