On 3/5/2012 11:35 AM, Ronald J. Yacketta wrote:
>
> All,
>
> Has something changed in the latest Cobbler release? Previously I was able
> to run the following from the command line WITHOUT cobbler sucking down the
> entire repo:
>
> cobbler import --path=/mnt/iso/SL-62-x86_64 --name=SL-62-x86_64
> --available-as=http://_URL_/scientific6-64
>
> Just ran that command this morning and cobbler sucked down the entire repo
> into /var/www/cobbler/ks_mirror/SL-62-x86_64, I thought --available-as
> prevented such nonsense.
>
> from the man page:
> Note that all of the import commands will mirror install tree content into
> /var/www/cobbler unless a network accessible location is given with
> --available-as.
>
> The URL provided is valid, I can use lynx and wget on it from the cobbler
> server.
>
> Thoughts?
>
> Cobbler:
> Installed Packages
> Name : cobbler
> Arch : noarch
> Version : 2.3.1
> Release : 1.el6
> Size : 2.2 M
>
> OS: CentOS release 6.2 (Final)
>
> -Ron
Yes, this was changed because of the way the import modules work. It's
a chicken and egg problem, because the rsync now has to happen before
the scan can be executed to figure out what the breed is. One of the
things I plan to tweak is to provide a list of files for rsync to grab
instead of the entire tree, so that it only grabs stuff like the
kernel/initrd/etc.