2018-10-12 21:21:18 +00:00
|
|
|
|
|
|
|
# ./fedora-atomic-updates-base.ks - for building media from the updates
|
|
|
|
# refs (fedora/29/${basearch}/updates/atomic-host)
|
|
|
|
|
2019-02-06 07:22:16 +00:00
|
|
|
ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=https://kojipkgs.fedoraproject.org/compose/ostree/repo/ --ref=fedora/29/${basearch}/updates/atomic-host
|
2018-10-12 21:21:18 +00:00
|
|
|
|
|
|
|
%post --erroronfail
|
|
|
|
# Find the architecture we are on
|
|
|
|
arch=$(uname -m)
|
|
|
|
# Set the origin to the "main stable ref", distinct from /updates/ which is where bodhi writes.
|
|
|
|
# We want consumers of this image to track the two week releases.
|
2019-02-06 07:22:16 +00:00
|
|
|
ostree admin set-origin --index 0 fedora-atomic https://ostree.fedoraproject.org "fedora/29/${arch}/atomic-host"
|
2018-10-12 21:21:18 +00:00
|
|
|
|
|
|
|
# Make sure the ref we're supposedly sitting on (according
|
|
|
|
# to the updated origin) exists.
|
|
|
|
ostree refs "fedora-atomic:fedora/29/${arch}/updates/atomic-host" --create "fedora-atomic:fedora/29/${arch}/atomic-host"
|
|
|
|
|
|
|
|
# Remove the old ref so that the commit eventually gets
|
|
|
|
# cleaned up.
|
|
|
|
ostree refs "fedora-atomic:fedora/29/${arch}/updates/atomic-host" --delete
|
|
|
|
|
|
|
|
# delete/add the remote with new options to enable gpg verification
|
|
|
|
# and to point them at the cdn url
|
|
|
|
ostree remote delete fedora-atomic
|
2019-02-06 07:22:16 +00:00
|
|
|
ostree remote add --set=gpg-verify=true --set=gpgkeypath=/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-29-primary --set=contenturl=mirrorlist=https://ostree.fedoraproject.org/mirrorlist fedora-atomic 'https://ostree.fedoraproject.org'
|
2018-10-12 21:21:18 +00:00
|
|
|
|
|
|
|
%end
|