Lines Matching refs:arch
235 local arch=$2
266 # $3 => whether to use the multi-arch syntax or not
287 deb [arch=$2] $MIRROR ${release} main restricted universe multiverse
288 deb [arch=$2] $MIRROR ${release}-updates main restricted universe multiverse
289 deb [arch=$2] $SECURITY_MIRROR ${release}-security main restricted universe multiverse
318 try_rmsubvolume $cache/partial-$arch
319 try_rmsubvolume $cache/rootfs-$arch
331 arch=$2
369 try_mksubvolume "$cache/partial-$arch"
371 echo "Failed to create '$cache/partial-$arch' directory"
375 choose_container_proxy $cache/partial-$arch/ $arch
379 qemu-debootstrap --verbose $debootstrap_parameters --components=main,universe --arch=$arch --include=${packages_template} $release $cache/partial-$arch $MIRROR
381 debootstrap --verbose $debootstrap_parameters --components=main,universe --arch=$arch --include=${packages_template} $release $cache/partial-$arch $MIRROR
392 > $cache/partial-$arch/etc/apt/sources.list
393 write_sourceslist $cache/partial-$arch/ $arch
395 chroot "$1/partial-${arch}" apt-get update
400 cat > "$1/partial-${arch}"/usr/sbin/policy-rc.d << EOF
404 chmod +x "$1/partial-${arch}"/usr/sbin/policy-rc.d
408 mount -t proc proc "${1}/partial-${arch}/proc"
409 chroot "${1}/partial-${arch}" apt-get dist-upgrade -y
413 rm -f "$1/partial-${arch}"/usr/sbin/policy-rc.d
415 chroot "$1/partial-${arch}" apt-get clean
417 mv "$1/partial-$arch" "$1/rootfs-$arch"
429 arch=$2
435 if which btrfs >/dev/null 2>&1 && is_btrfs_subvolume $cache/rootfs-$arch && is_btrfs_subvolume $rootfs; then
439 btrfs subvolume snapshot $cache/rootfs-$arch $realrootfs || return 1
442 rsync -Ha $cache/rootfs-$arch/ $rootfs/ || return 1
465 try_rmsubvolume $cache/partial-$arch
466 try_rmsubvolume $cache/rootfs-$arch
469 echo "Checking cache download in $cache/rootfs-$arch ... "
470 if [ ! -e "$cache/rootfs-$arch" ]; then
471 download_ubuntu $cache $arch $release
478 echo "Copy $cache/rootfs-$arch to $rootfs ... "
479 copy_ubuntu $cache $arch $rootfs
497 arch=$4
500 if [ $arch = "i386" ]; then
501 arch="i686"
535 lxc.arch = $arch
581 write_sourceslist $rootfs $arch "native"
673 $1 -h|--help [-a|--arch] [-b|--bindhome <user>] [-d|--debug]
682 arch: the container architecture (e.g. amd64): defaults to host arch
690 options=$(getopt -o a:b:hp:r:v:n:FS:du: -l arch:,bindhome:,help,path:,release:,variant:,name:,flush-cache,auth-key:,debug,rootfs:,packages:,user:,password:,mirror:,security-mirror: -- "$@")
709 arch=`/usr/bin/dpkg --print-architecture`
711 arch=`/usr/bin/udpkg --print-architecture`
713 arch=$(uname -m)
714 if [ "$arch" = "i686" ]; then
715 arch="i386"
716 elif [ "$arch" = "x86_64" ]; then
717 arch="amd64"
718 elif [ "$arch" = "armv7l" ]; then
719 arch="armhf"
720 elif [ "$arch" = "aarch64" ]; then
721 arch="arm64"
722 elif [ "$arch" = "ppc64le" ]; then
723 arch="ppc64el"
728 hostarch=$arch
748 -a|--arch) arch=$2; shift 2;;
771 if [ "$arch" = "i686" ]; then
772 arch=i386
775 if [ $hostarch = "i386" -a $arch = "amd64" ]; then
776 echo "can't create $arch container on $hostarch"
781 [ $arch != "armhf" -a $arch != "armel" -a $arch != "arm64" ]; then
782 echo "can't create $arch container on $hostarch"
786 if [ $arch = "arm64" ] && [ $hostarch != "arm64" ]; then
787 echo "can't create $arch container on $hostarch"
791 if [ $hostarch = "powerpc" -a $arch != "powerpc" ]; then
792 echo "can't create $arch container on $hostarch"
831 copy_configuration $path $rootfs $name $arch $release