From 015e301b258de50c7f2f7ddf710a69b2dda92639 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 2 Mar 2017 10:57:04 -0500 Subject: [PATCH] fedora-atomic.ks: create new ref and delete old one 1. Make sure that the ref we sit on exists. This will also work around a subtle issue which would cause static deltas to not be used (though https://github.com/ostreedev/ostree/pull/710 will fix that). 2. Make sure we delete the old refs so that the commit eventually gets cleaned up. --- fedora-atomic.ks | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fedora-atomic.ks b/fedora-atomic.ks index 8e8444b..fcd1626 100644 --- a/fedora-atomic.ks +++ b/fedora-atomic.ks @@ -42,6 +42,14 @@ reboot # of this image to track the two week releases ostree admin set-origin --index 0 fedora-atomic https://kojipkgs.fedoraproject.org/atomic/25/ fedora-atomic/25/x86_64/docker-host +# Make sure the ref we're supposedly sitting on (according +# to the updated origin) exists. +ostree refs fedora-atomic:fedora-atomic/25/x86_64/updates/docker-host --create fedora-atomic:fedora-atomic/25/x86_64/docker-host + +# Remove the old ref so that the commit eventually gets +# cleaned up. +ostree refs fedora-atomic:fedora-atomic/25/x86_64/updates/docker-host --delete + # older versions of livecd-tools do not follow "rootpw --lock" line above # https://bugzilla.redhat.com/show_bug.cgi?id=964299 passwd -l root