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

Bug#826709: Doesn't mention --foreign in help output



CCing the maintainer of arch-test who will probably have some input.

On Sun, 2018-04-01 at 11:32 +0900, Hideki Yamane wrote:

> +               if [ "$HOST_ARCH" = "amd64" ] && [ "$ARCH" = "i386" ] ; then
> +               # i386 binary can be run on amd64 host

It is a bad idea to hard-code this and hard-code it for only two
arches, using arch-test and falling back to a more comprehensive list
would be much better, as I suggested in my initial bug report:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826709#5

> +                       error 1 WHATARCH "Tried to run on different architecture in chroot environment.\n   Use --foreign or --second-stage option, instead"

I prefer the message I wrote in my initial bug report:

  This machine cannot run binaries for architecture armhf
  There are two options to work around this:

  Use qemu-debootstrap instead of debootstrap

  Use debootstrap --foreign here and
  use debootstrap --second-stage on armhf

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826709#5

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: