Javier Palacios wrote: >>> I've been revisiting the previous import code, and I'm working in a >>> small refactoring that will probably re-enable importing of multiple >>> distros at the same time, at the price of all of them sharing a single >>> breed specified at command line, and will also make easier to add >>> other distros. >>> >>> > > Actually recover the multi-import has been much easier than I expected. The > patch attached works, at least for me. > > I can import three distros as > cobbler import --mirror=/media/distros/rhas/4.6 --name=rhas > cobbler import --path=/media/distros/Fedora9/i386/ --name=f9_32 > cobbler import --mirror=/media/distros/Fedora9/x86_64 --name=f9_64 > > or issue a single command > cobbler import --mirror=/media/distros --name=allinone --breed=redhat > > and all of them work. > > Regarding the patch itself, a couple of comments. I've moved distro_adder > method > close to the distro add related method, but there is no change there. > I have also > modified item_distro.py, to remove breed and arch defaults. It was > difficult to know > why (and where) was the distro flavor set without os version until I > realize that the > redhat flavor was given on instantiation. It might be safer not to > move that change > into HEAD, but at least for devel branch I believe it is a good idea > to have no such > hardcoded defaults. > The remaining changes are mostly intended as a first step to the real > refactor, to > make easier understand the changes than submitting the patch in the final form > > Javier Palacios > > ------------------------------------------------------------------------ > > _______________________________________________ > cobbler mailing list > [email protected] > https://fedorahosted.org/mailman/listinfo/cobbler
Ok, I will look at this shortly. Can you comment on the missing "$tree" in the seed file and how we can get the preseed and/or kernel options to reference the install source? This was from Friday's comment. --Michael _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
