Bug 577247 - [PATCH] Add --initrd-injections option
Summary: [PATCH] Add --initrd-injections option
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: python-virtinst
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-26 14:51 UTC by Colin Walters
Modified: 2010-04-26 16:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-26 16:13:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Add --initrd-injections option (5.00 KB, patch)
2010-03-26 14:51 UTC, Colin Walters
no flags Details | Diff
add --kickstart, --initrd-inject (5.95 KB, patch)
2010-04-07 03:32 UTC, Colin Walters
no flags Details | Diff

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)


Note You need to log in before you can comment on or make changes to this bug.