Bug 874346

Summary: virt-install should allow injecting files into subdirectories of the initramfs.
Product: [Community] Virtualization Tools Reporter: Tom Prince <tom.prince>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, berrange, crobinso
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-27 16:26:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tom Prince 2012-11-08 00:54:03 UTC
Description of problem:

virt-install only allows injecting files into the root of the initramfs.
When using anaconda kickstart scripts, I have been informed that only files in
/run/install will be accessible in the post-install script, which means that virt-install doesn't have a a way of injecting files to be accesible then.

(Specifying a directory to --inject-initrd doesn't work either, do to the use of shutil.copy).

Comment 1 Cole Robinson 2013-04-21 19:12:26 UTC
virtinst has been merged into virt-manager.git. Moving all virtinst bugs to the virt-manager component.

Comment 2 Cole Robinson 2013-09-27 16:26:01 UTC
Thanks for the report, sorry for the long delay with no response.

(In reply to Tom Prince from comment #0)
> Description of problem:
> 
> virt-install only allows injecting files into the root of the initramfs.
> When using anaconda kickstart scripts, I have been informed that only files
> in
> /run/install will be accessible in the post-install script, which means that
> virt-install doesn't have a a way of injecting files to be accesible then.


Doesn't seem to be the case for me, I have a test suite that verifies anaconda can read a kickstart for RHEL4-6, F14+ and it all works. The only caveat is F16 will only pass through a .ks or .cfg file but later Fedora's don't have that problem. So rather than complicate this already complicated code I'm just going to say WONTFIX