Lines Matching refs:arch

168     local arch="$1";    shift
171 if [ -n "${arch}" ]; then
172 prefix="deb [arch=${arch}]"
252 rm -rf "$cache/partial-$release-$arch"
253 rm -rf "$cache/rootfs-$release-$arch"
278 arch=$2
302 mkdir -p "$cache/partial-$release-$arch"
304 echo "Failed to create '$cache/partial-$release-$arch' directory"
310 debootstrap --verbose --variant=minbase --arch="$arch" \
312 "$release" "$cache/partial-$release-$arch" "$MIRROR"
318 mv "$1/partial-$release-$arch" "$1/rootfs-$release-$arch"
331 arch=$2
338 rsync -Ha "$cache/rootfs-$release-$arch"/ "$rootfs"/ || return 1
346 arch=$3
356 echo "Checking cache download in $cache/rootfs-$release-$arch ... "
357 if [ ! -e "$cache/rootfs-$release-$arch" ]; then
358 download_debian "$cache" "$arch" "$release"
365 copy_debian "$cache" "$arch" "$rootfs" "$release"
383 arch=$4
412 lxc.arch = $arch
427 local arch="$1"; shift
439 if [ "${arch}" != "${hostarch}" ]; then
448 if [ "${arch}" = "${hostarch}" ]; then
449 write_sourceslist "${rootfs}" "${release}" "${arch}"
497 Usage: $1 -h|--help -p|--path=<path> [-c|--clean] [-a|--arch=<arch>] [-r|--release=<release>]
505 -a, --arch=ARCH The container architecture. Can be one of: i686, x86_64,
506 amd64, armhf, armel, powerpc. Defaults to host arch.
530 options=$(getopt -o hp:n:a:r:c -l arch:,clean,help,enable-non-free,mirror:,name:,packages:,path:,release:,rootfs:,security-mirror: -- "$@")
539 arch=$(uname -m)
540 if [ "$arch" = "i686" ]; then
541 arch="i386"
542 elif [ "$arch" = "x86_64" ]; then
543 arch="amd64"
544 elif [ "$arch" = "armv7l" ]; then
545 arch="armhf"
546 elif [ "$arch" = "ppc" ]; then
547 arch="powerpc"
548 elif [ "$arch" = "ppc64le" ]; then
549 arch="ppc64el"
550 elif [ "$arch" = "mips" -a "$littleendian" = "yes" ]; then
551 arch="mipsel"
552 elif [ "$arch" = "mips64" -a "$littleendian" = "yes" ]; then
553 arch="mips64el"
555 hostarch=$arch
564 -a|--arch) arch=$2; shift 2;;
583 if [ "$arch" = "i686" ]; then
584 arch=i386
587 if [ "$arch" = "x86_64" ]; then
588 arch=amd64
591 if [ $hostarch = "i386" -a $arch = "amd64" ]; then
592 echo "can't create $arch container on $hostarch"
597 [ $arch != "armhf" -a $arch != "armel" ]; then
598 echo "can't create $arch container on $hostarch"
602 if [ $hostarch = "powerpc" -a $arch != "powerpc" ]; then
603 echo "can't create $arch container on $hostarch"
648 install_debian "$rootfs" "$release" "$arch" "$LXC_CACHE_PATH"
660 copy_configuration "$path" "$rootfs" "$name" $arch $num_tty
668 post_process "${rootfs}" "${release}" "${arch}" "${hostarch}" "${packages}"