forked from srbala/fedora-kickstarts
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:
parent
8909332a6d
commit
3fd7e8b009
@ -32,11 +32,15 @@ volgroup atomicos pv.01
|
||||
logvol / --size=3000 --fstype="xfs" --name=root --vgname=atomicos
|
||||
|
||||
# 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
|
||||
|
||||
%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
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=964299
|
||||
|
Loading…
Reference in New Issue
Block a user