YungSang / fedora-atomic-packer

Fedora Atomic Packer for Vagrant Box
10 stars 7 forks source link

reuse existing ovf instead of deleting #5

Closed kikitux closed 9 years ago

kikitux commented 9 years ago

Hello, I am running my first make on this, and it's downloading the information over the network.

I think the 2nd time it will delete everything and doit again.. right?

in such case, perhaps an option would be:

What do you think?

YungSang commented 9 years ago

@kikitux Thank you for your suggestion.

That would be great and much faster to build. I have just a concern about the size of a box with two repos in this case. Do you know how to remove the old ostree repo gracefully after upgrading?

YungSang commented 9 years ago

Or having two repos might be good for fallback.

YungSang commented 9 years ago

I found it.

# ostree admin undeploy 1
kikitux commented 9 years ago

this is an output when I did atomic upgrade, and created a new entry.. check *

ostree admin status fedora-atomic a09ce2f824443cbe269173b77501ba4d9f6859104f1e3a98dcd71802a76dc39a.1 origin refspec: fedora-atomic:fedora-atomic/rawhide/x86_64/docker-host

after reboot,..

[vagrant@localhost ~]$ ostree admin status

[vagrant@localhost ~]$ sudo ostree admin undeploy 1 Transaction complete; bootconfig swap: yes deployment count change: -1 Freed objects: 97.6 MB Deleted deployment 7cd239a8947a75989c11a252debb4dd4e4b26909152a6e00e5eb504b71ee4124.0 [vagrant@localhost ~]$

YungSang commented 9 years ago

I will try to make upgrade to build a new box from the current box.

kikitux commented 9 years ago

Did a sample template_upgrade.json for your review.

https://github.com/YungSang/fedora-atomic-packer/pull/6

I haven't tested as for some reason the make fails due something on sudo..

kikitux commented 9 years ago

updated the PR