cloud-atomic: Trim installmedia remote

Otherwise it takes up space until manually removed.
This commit is contained in:
Colin Walters 2014-11-17 15:14:27 -05:00
parent 7a7d16bc5c
commit 16fb17d455

View File

@ -39,6 +39,7 @@ reboot
# See https://github.com/projectatomic/rpm-ostree/issues/42
ostree remote add --set=gpg-verify=false fedora-atomic 'http://dl.fedoraproject.org/pub/fedora/linux/atomic/21/'
(origin_file=$(echo -n /ostree/deploy/fedora-atomic-host/deploy/*.origin); sed -e 's,installmedia:,fedora-atomic:,' < ${origin_file} > ${origin_file}.new && mv ${origin_file}{.new,})
rm /ostree/repo/refs/remotes/installmedia -rf
# older versions of livecd-tools do not follow "rootpw --lock" line above
# https://bugzilla.redhat.com/show_bug.cgi?id=964299