1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-13 03:24:21 +00:00

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.
This commit is contained in:
Jonathan Lebon 2017-03-02 10:57:04 -05:00
parent e77c443079
commit 015e301b25

View File

@ -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