atomic: build from updates ostree ref

We want to build images from ostree ref that gets updated "nightly"
but we want consumers of the image to track the two week releases.

This is part of work for ticket: https://pagure.io/releng/issue/6545
This commit is contained in:
Dusty Mabe 2017-02-07 17:13:21 -05:00
parent 8909332a6d
commit 3fd7e8b009
No known key found for this signature in database
GPG Key ID: 3302DBD73952E671

View File

@ -32,11 +32,15 @@ volgroup atomicos pv.01
logvol / --size=3000 --fstype="xfs" --name=root --vgname=atomicos logvol / --size=3000 --fstype="xfs" --name=root --vgname=atomicos
# Equivalent of %include fedora-repo.ks # Equivalent of %include fedora-repo.ks
ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=https://dl.fedoraproject.org/pub/fedora/linux/atomic/25/ --ref=fedora-atomic/25/x86_64/docker-host ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=https://dl.fedoraproject.org/pub/fedora/linux/atomic/25/ --ref=fedora-atomic/25/x86_64/updates/docker-host
reboot reboot
%post --erroronfail %post --erroronfail
# Set the ref we are tracking to the be fedora-atomic/25/x86_64/docker-host
# one, which is what we are using for the two week releases. We want consumers
# of this image to track the two week releases
ostree admin set-origin --index 0 fedora-atomic https://dl.fedoraproject.org/pub/fedora/linux/atomic/25/ fedora-atomic/25/x86_64/docker-host
# older versions of livecd-tools do not follow "rootpw --lock" line above # older versions of livecd-tools do not follow "rootpw --lock" line above
# https://bugzilla.redhat.com/show_bug.cgi?id=964299 # https://bugzilla.redhat.com/show_bug.cgi?id=964299