Add --initrd-injections option For automating Fedora installations using Kickstart, a neat trick is to put the kickstart file into the initrd. Then there's no need to have a separate webserver or NFS mount just so anaconda can retrieve the file. Example usage: virt-install --initrd-injections=/path/to/my.ks -x "ks=file:/my.ks" ... This functionality really needs to be in virt-install because it's the code which is downloading and then consuming the initrd. An open question is whether it makes sense to have higher level options like: --kickstart=/path/to/my.ks which would imply both of the above options. This would be Anaconda-specific however.
Created attachment 402861 [details] Add --initrd-injections option
Created attachment 404829 [details] add --kickstart, --initrd-inject Implement --kickstart too
Sorry this took so long, applied upstream now: http://hg.fedorahosted.org/hg/python-virtinst/rev/74bc3757b247 I added man page docs and some logging, and dropped the --kickstart option: I'm not sure how best to expose that capability, so I figured for now just stick with the --initrd-inject option. Sorry for the busy work :) Just closing as upstream, this will be in rawhide when we cut a new release
Thanks! No problem here not having --kickstart; I'm happy with that living in a higher level tool. (What I want is a UI in virt manager where you can pick an OS, pick a version, then optionally edit a kickstart file if you chose Fedora/RHEL)