Bug 577247

Summary: [PATCH] Add --initrd-injections option
Product: [Fedora] Fedora Reporter: Colin Walters <walters>
Component: python-virtinstAssignee: Cole Robinson <crobinso>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: berrange, crobinso, jforbes, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-26 16:13:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Add --initrd-injections option
none
add --kickstart, --initrd-inject none

Description Colin Walters 2010-03-26 14:51:10 UTC
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.

Comment 1 Colin Walters 2010-03-26 14:51:41 UTC
Created attachment 402861 [details]
Add --initrd-injections option

Comment 2 Colin Walters 2010-04-07 03:32:04 UTC
Created attachment 404829 [details]
add --kickstart, --initrd-inject

Implement --kickstart too

Comment 3 Cole Robinson 2010-04-26 16:13:18 UTC
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

Comment 4 Colin Walters 2010-04-26 16:35:35 UTC
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)