Fix invocation with no options
Add missing orphansKill in finalize
Move duplicated code for copying config to separate function

It is used for copying resolv.conf, hosts and localtime from host to chroot
Replace remaining usage of createrepo with createrepo_c