Red Hat Bugzilla – Full Text Bug Listing
|Summary:||RFE: load install classes from base dir at runtime|
|Product:||[Retired] Red Hat Linux||Reporter:||Matthew Miller <mattdm>|
|Component:||anaconda||Assignee:||Jeremy Katz <katzj>|
|Status:||CLOSED RAWHIDE||QA Contact:||Mike McLean <mikem>|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2003-07-09 00:45:38 EDT||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
Description Matthew Miller 2002-06-12 16:07:29 EDT
Currently, install classes (server, workstation, laptop, etc.) are hard-wired into anacoda and reside in the install image. It would vastly increase the flexibilty and usefulness of the install class concept if, instead, these could be loaded dynamically at runtime. This way, enterprise users (or aspiring hackers) could make their own install classes without having to hack up and rebuild the installer itself. Currently, there is a sort of "magic" tie between component groups listed in the comps file and their mentions in the install classes -- the interaction between the "hidden" install class .py files and the contents of the comps file isn't at all obvious. This suggests to me that it would make sense to put the install class .py files -- they're small! -- in the base directory right next to the comps file. To avoid having to do directory searches to find the available classes, perhaps they should actually be listed explicitly in the comps file itself. (Using some new syntax?) This idea is about 3/4 baked -- a little better than half. I'm more than willing to help think of ideas for making this work, and perhaps even could work on the code if that would be helpful.
Comment 1 Gene Czarcinski 2002-06-12 18:05:59 EDT
Why not change this against "7.3"?
Comment 2 Matthew Miller 2002-06-12 21:15:12 EDT
I figured I'd mark it against the beta and let Red Hat folks open it up if they're so inclined -- easier to do that than to go the other way.
Comment 3 Matthew Miller 2002-06-12 21:19:40 EDT
To be clear -- I don't mean to include the contents of the *.py installclasses files in the comps file, but rather to include *pointers* to the various ones there.
Comment 4 Michael Fulbright 2002-06-14 11:53:26 EDT
What do you think jeremy?
Comment 5 Jeremy Katz 2002-06-14 20:08:22 EDT
I want to do something like this, but as previously expressed on testers-list a few times, just dropping random python files in RedHat/base/ isn't going to cut it.
Comment 6 Matthew Miller 2002-06-16 20:28:49 EDT
I think python files pointed to by the comps file (or perhaps some other index file) would work. If necessary, that file could contain MD5sums and anaconda could deal intelligently with failure there.
Comment 7 Jeremy Katz 2003-07-09 00:45:38 EDT
If you create a file product.img in RedHat/base/ now, it will get mounted during the installation. The file should be an ext2 formatted floppy. Create an installclasses/ dir and put any installclasses you want to be available there.
Comment 8 Matthew Miller 2003-07-09 07:57:25 EDT
Thanks; you rock!