Hello again, > Use cobbler distro add. > > As per the manpage, "cobbler import" works with stock DVD images only, > but is only a wrapper around distro/profile add that is very easy to do > yourself.
Thanks for the heads up on "distro add" but "import" is just more appealing. I am going to apologize for the probably misleading subject title of my mail that started this thread. I realize now that cobbler does what it is meant to do for my particular use case which is using cobbler import and its "--available-as" option. I am not importing multiple iso to set up the distro ;-). However, to get there I needed to apply a small patch based on my thoughts on using .discinfo on the mounted iso image. [r...@repoman ~]# cobbler import --path=/var/www/mrepo/rhel4-U4-es-i386/disc1 --name=rhel4.4-es --arch=i386 --available-as=http://repoman.gre.hp.com/mrepo/rhel4-U4-es-i386/ ---------------- (adding distros) - found content (breed=redhat) at /var/www/mrepo/rhel4-U4-es-i386/disc1/images/pxeboot - architectures found at /var/www/mrepo/rhel4-U4-es-i386/disc1/RedHat/RPMS: ['i386'] - creating new distro: rhel4.4-es-i386 - creating new profile: rhel4.4-es-i386 - creating new profile: rescue-rhel4.4-es-i386 ---------------- (associating kickstarts) - found content (breed=redhat) at /var/www/mrepo/rhel4-U4-es-i386/disc1/images/pxeboot - found content (breed=redhat) at /var/www/mrepo/rhel4-U4-es-i386/disc1/images/pxeboot All the info necessary info is now slurped in. The problem with how the arch is currently determined in action_import.py is that arch determination is based on finding a kernel type package. In my case for Rhel4-U4, those pkgs are on disc2, so no joy. In the attached patch, I first check the arch info returned by the .discinfo file on disc1 and if no joy fallback to the kernel package check. I know the patch is a bit rough but would something along those be acceptable for inclusion into cobbler. Many thanks again, Gareth _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
