Chris O'Regan wrote:
> I imported CentOS like so:
>
> cobbler import \
>      --mirror=rsync://rsync.arcticnetwork.ca/centos/5.2/os/x86_64/ \
>      --arch=x86_64 \
>      --name=centos-5.2
>
> It fetched everything and put it in:
>
>       /local/data/cobbler/www/ks_mirror/centos-5.2-x86_64
>
> Yet when it decided to name my distro and profile, it tacked on and 
> extra "centos-5.2":
>   

Because the mirror had the structure "Centos/5.2" in it, it 
automatically prefixed that content to the mirror name.

For instance, when rsyncing, you could have chosen to mirror /all/ of 
Arctic Network (though they might love you for it).

cobbler import --name=prefix 
--mirror=rsync://rsync.arcticnetwork.ca/centos/5.2/os/x86_64/

In that case, you might end up with distros named 
"prefix-Centos-5.2-x86_64" and "prefix-CentOS-5.1-x86_64" and ....

Thankfully there is an easy command you can use:

cobbler distro rename --name=foo --newname=bar

Import is there to make your life easier, but isn't expected to exactly 
know that the prefix you gave was the name of a particular distribution 
and the URL you gave was specific to one distribution.

Of course if you are importing from a DVD source, we can (and do) know 
exactly what to do. Rsync? You could be pulling in a lot of content, so 
name is just a prefix.




> [...]
> ---------------- (adding distros)
> - creating new distro: centos-5.2-centos-5.2-x86_64
> - creating new profile: centos-5.2-centos-5.2-x86_64
> - creating new distro: centos-5.2-centos-5.2-xen-x86_64
> - creating new profile: centos-5.2-centos-5.2-xen-x86_64
> [...]
>
> I prefer "centos-5.2-x86_64" and "centos-5.2-xen-x86_64". Why would it 
> name it in this manner? Did I invoke the import incorrectly?
>
> This is v2.8.0.
>   

Wow, it's from the future! :)





>
> Thanks,
>
> Chris
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>   

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to