stdevel / mkelfs

Create kickstart trees for EL-like distros in Spacewalk, Red Hat Satellite 5.x, or SUSE Manager
http://st-devel.net/blmekt
GNU General Public License v2.0
7 stars 0 forks source link

Implement switch for updating pre-existing kickstart distributions #15

Open stdevel opened 8 years ago

stdevel commented 8 years ago

Once kickstart distributions become outdated, installing newer packages from the Spacewalk repositories might fail. So it would be great to have a switch like -u / --update to update pre-existing kickstart distributions on the hard drive.

pitkley commented 5 years ago

Just as a hint for other people stumbling onto this issue, wondering if they have a way to update an existing tree even though this feature doesn't exist (yet). In my case I wanted to update my kickstart-tree for CentOS 7, which I initially created using:

mkelfs -o centos -r 7 -x x86_64 -c

To update the tree I simply changed the -c/--create-distribution to -f/--force:

mkelfs -o centos -r 7 -x x86_64 -f

This will trigger mkelfs to purge the old tree and download the new one, without touching the tree registered in Spacewalk. Please note that this is definitely not as optimal as a potential --update flag could be since the whole tree will be re-downloaded, even though some of the data might not have changed.