From 3fd7e8b00972e53fbea43c72365a2a64dbd6c453 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Tue, 7 Feb 2017 17:13:21 -0500 Subject: [PATCH] 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 --- fedora-atomic.ks | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fedora-atomic.ks b/fedora-atomic.ks index 1506d45..1fce6ec 100644 --- a/fedora-atomic.ks +++ b/fedora-atomic.ks @@ -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