[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#637363: debootstrap 1.0.35 fails to accept --arch=amd64 on CentOS 5.6 system



retitle 637363 should fallback to uname to determine current architecture
thanks

Whit Blauvelt, le Wed 10 Aug 2011 12:19:36 -0400, a écrit :
> # /usr/sbin/debootstrap --arch=amd64 squeeze /mnt/deb /http://ftp.us.debian.org/debian
> E: Couldn't work out current architecture
> 
> Removing the "=" makes no difference.
> 
> This is on an up-to-date CentOS 5.6 system:
> 
> # uname -a
> Linux xxx.yyy.local 2.6.18-194.11.4.el5 #1 SMP Tue Sep 21 05:04:09 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
> 
> I suggest that debootstrap should accept the --arch specification rather
> than try to "work out" what it is by whatever method.

--arch is the target architecture, not the current architecture. It
needs the latter to know how to deal with some details. debootstrap
should probably resort to uname in such case. It used to provide an arch
file providing the info but not any more at since 2005...
Actually all we seem to need nowadays is linux vs freebsd vs hurd, so
`uname` should be enough.

Samuel



Reply to: