[xen-tools] Re: Can't define CentOS mirror

From: Steve Kemp <steve_at_steve.org.uk>
Date: Sun, 8 Apr 2007 16:08:14 +0100
On Tue, Apr 03, 2007 at 09:42:40PM +0200, Gal Buki wrote:

> I'm installing CentOS 4 with xen-tools and used 
> "--mirror=http://mymirror.tld/centos" to define the mirror.
> 
> But why do I still get this output:
> rpmstrap: debug: wget 
> http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/basesystem-8.0-4.noarch.rpm
> 
> I tried several mirrors but it look slike the script would always get 
> the packages from the same mirror statet above.
> 
> Is the ouptut false or did I do a fault with the command?

  No.  There is a bug (?) in xt-install-system.  The --mirror
 option is ignored for rpmstrap, and only used for debootstrap.

  See the code :

      my $command = "rpmstrap $EXTRA $CONFIG{'dist'} $CONFIG{'location'}";

  $EXTRA is used for "--arch=foo", if present, the only other options
 passed are the distribution and the location on the local filesystem.

  Please try editing the script to add --mirror=$CONFIG{'mirror'} in
 the do_rpmstrap function, in the same way as is used in the
 do_debootstrap function.

  If that works I'll update the code when I get back to Edinburgh,
 which will be tomorrow.

  cheers for the bug report.

Steve
-- 
Received on Sun Apr 08 2007 - 16:08:30 BST

Mailing list overview.