Searched refs:arch (Results 1 - 21 of 21) sorted by relevance

/lxc/templates/
H A Dlxc-opensuse.in122 arch=$2
131 mkdir -p "$cache/partial-$arch"
134 echo "Failed to create '$cache/partial-$arch' directory"
140 mkdir -p "$cache/partial-$arch-packages"
141 zypper --quiet --root $cache/partial-$arch-packages --non-interactive ar http://download.opensuse.org/distribution/$DISTRO/repo/oss/ repo-oss || return 1
144 zypper --quiet --root $cache/partial-$arch-packages --non-interactive ar http://download.opensuse.org/update/$DISTRO/oss/ update || return 1
146 zypper --quiet --root $cache/partial-$arch-packages --non-interactive ar http://download.opensuse.org/update/$DISTRO/ update || return 1
148 zypper --quiet --root $cache/partial-$arch-packages --non-interactive --gpg-auto-import-keys update || return 1
149 zypper --root $cache/partial-$arch-packages --non-interactive in --auto-agree-with-licenses --download-only zypper lxc patterns-openSUSE-base bash iputils sed tar rsyslog || return 1
150 cat > $cache/partial-$arch
[all...]
H A Dlxc-ubuntu.in235 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' director
[all...]
H A Dlxc-ubuntu-cloud.in54 arch=$4
57 if [ $arch = "i386" ]; then
58 arch="i686"
95 lxc.arch = $arch
137 [ -a | --arch ]: Architecture of container, defaults to host architecture
149 options=$(getopt -o a:hp:r:n:Fi:CLS:T:ds:u: -l arch:,help,rootfs:,path:,release:,name:,flush-cache,hostid:,auth-key:,cloud,no_locales,tarball:,debug,stream:,userdata:,vendordata:,mapped-uid:,mapped-gid: -- "$@")
171 arch=`/usr/bin/dpkg --print-architecture`
173 arch=`/usr/bin/udpkg --print-architecture`
175 arch
[all...]
H A Dlxc-debian.in168 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
[all...]
H A Dlxc-alpine.in75 -a ARCH, --arch=ARCH The container architecture (e.g. x86, x86_64); defaults
76 to the host arch.
115 local arch="$1"
116 local branch=$(fetch "$MIRROR_URL/latest-stable/releases/$arch/latest-releases.yaml" \
195 local arch="$2"
200 local pkg_ver=$(fetch "$MIRROR_URL/latest-stable/main/$arch/APKINDEX.tar.gz" \
206 fetch "$MIRROR_URL/latest-stable/main/$arch/${pkg_name}-${pkg_ver}.apk" \
230 local arch="$2"
233 local apk_cache="$LXC_CACHE_DIR/apk/$arch"
237 einfo "Cleaning cached APK packages for $arch"
[all...]
H A Dlxc-archlinux.in42 arch=$(uname -m)
69 [ -f /etc/arch-release ] && is_arch=true
100 arch-chroot "${rootfs_path}" /bin/bash -s << EOF
152 grep -q "^lxc.arch" "${config}" 2>/dev/null \
153 || echo "lxc.arch = ${arch}" >> "${config}"
167 [ "${arch}" != "$(uname -m)" ] && different_arch=true
172 sed -e "s:Architecture =.*:Architecture = ${arch}:g" \
175 sed -e "s:\(x86_64\|\$arch\):${arch}
[all...]
H A Dlxc-cirros.in82 -a | --arch A architecture to use [${ARCHES[*]}]
117 local path=$1 rootfs=$2 name=$3 arch=$4 release=$5
128 lxc.arch = $arch
215 local arch="$1" ver="$2" cached="$3" baseurl="$4"
217 file="cirros-$ver-$arch-lxc.tar.gz"
240 local long_opts="arch:,auth-key:,name:,path:,tarball:,userdata:,verbose,version:,rootfs:,mapped-uid:,mapped-gid:"
247 local arch="${DEF_ARCH}" dsource="${DEF_SOURCE}" version="${DEF_VERSION}"
255 -a|--arch) arch
[all...]
H A Dlxc-gentoo.in78 # gentoo arch/variant detection
81 printf "### set_default_arch: default arch/variant autodetect...\n"
82 arch=$(uname -m)
83 if [[ $arch =~ i.86 ]]; then
84 arch="x86"
86 elif [[ $arch == "x86_64" ]]; then
87 arch="amd64"
89 elif [[ $arch =~ arm.* ]]; then
90 arch="arm"
94 printf " => warn: unexpected arch
[all...]
H A Dlxc-plamo.in71 -I $MIRRORPATH/Plamo-$release/$arch/plamo/$i \
72 -X $MIRRORPATH/Plamo-$release/$arch/plamo/$i/old \
73 $DLSCHEME://$MIRRORSRV$MIRRORPATH/Plamo-$release/$arch/plamo/$i
81 -I $MIRRORPATH/Plamo-$release/$arch/contrib/$i \
82 -X $MIRRORPATH/Plamo-$release/$arch/contrib/$i/old \
83 $DLSCHEME://$MIRRORSRV$MIRRORPATH/Plamo-$release/$arch/contrib/$i
91 -I $MIRRORPATH/Plamo-$release/$arch/`dirname $p` \
92 -X $MIRRORPATH/Plamo-$release/$arch/`dirname $p`/old \
93 $DLSCHEME://$MIRRORSRV$MIRRORPATH/Plamo-$release/$arch/`dirname $p`
237 lxc.arch
[all...]
H A Dlxc-slackware.in45 if [ -z "$arch" ]; then
47 i?86) arch=i486 ;;
48 arm*) arch=arm ;;
49 *) arch=$( uname -m ) ;;
487 cp -a $cache/rootfs-$release-$arch/* $rootfs/ || exit 1
490 sed -i "s|$cache/rootfs-$release-$arch|$rootfs|" $rootfs/etc/fstab
506 if [ "$arch" == "x86_64" ]; then
508 elif [ "$arch" == "arm" ]; then
515 export ROOT=$cache/rootfs-$release-$arch
517 mkdir -p $cache/cache-$release-$arch
[all...]
H A Dlxc-sparclinux.in318 lxc.arch = $arch
480 # yum will take $basearch from host, so force the arch we want
570 -a|--arch=<arch> architecture (sparc64)
576 arch and release must also be specified
587 options=$(getopt -o hp:n:a:R:r:u:t: -l help,rootfs:,path:,name:,arch:,release:,rpms:,url:,templatefs:,patch:,baseurl: -- "$@")
601 -a|--arch) arch=$2; shift 2;;
620 if [ "$arch"
[all...]
H A Dlxc-oracle.in484 lxc.arch = $arch
675 # yum will take $basearch from host, so force the arch we want
826 -a|--arch=<arch> architecture (ie. i386, x86_64)
832 arch and release must also be specified
843 options=$(getopt -o hp:n:a:R:r:u:t: -l help,rootfs:,path:,name:,arch:,release:,rpms:,url:,templatefs:,patch:,baseurl: -- "$@")
857 -a|--arch) arch=$2; shift 2;;
876 if [ "$arch"
[all...]
H A Dlxc-openmandriva.in46 cache_base="${LXC_CACHE_PATH:-@LOCALSTATEDIR@/cache/lxc/openmandriva/$arch}"
133 URPMI="/usr/sbin/urpmi.addmedia --urpmi-root $INSTALL_ROOT main http://abf.rosalinux.ru/downloads/$release/repository/$arch/main/release"
325 [-A|--arch=<arch of the container>]
339 -A,--arch Define what arch the container will be [i586,x86_64,armv7l,armv7hl]
346 options=$(getopt -o hp:n:P:cR:4:6:g:d:A -l help,rootfs:,path:,name:,profile:,clean:,release:,ipv4:,ipv6:,gw:,dns:,arch: -- "$@")
376 -A|--arch) arch=$2; shift 2;;
386 arch
[all...]
H A Dlxc-centos.in439 mirrorlist=http://mirrorlist.centos.org/?release=$release&arch=$basearch&repo=os
443 mirrorlist=http://mirrorlist.centos.org/?release=$release&arch=$basearch&repo=updates
520 #cp -a $cache/rootfs-$arch $rootfs_path || return 1
630 lxc.arch = $arch
685 [-p|--path=<path>] [-c|--clean] [-R|--release=<CentOS_release>] [-a|--arch=<arch of the container>]
695 -a,--arch Define what arch the container will be [i686,x86_64]
701 options=$(getopt -o a:hp:n:cR: -l help,path:,rootfs:,name:,clean,release:,repo:,arch
[all...]
H A Dlxc-altlinux.in41 arch=$(uname -m)
42 cache_base=@LOCALSTATEDIR@/cache/lxc/altlinux/$arch
212 #cp -a $cache/rootfs-$arch $rootfs_path || return 1
365 [-A|--arch=<arch of the container>]
379 -A,--arch NOT USED YET. Define what arch the container will be [i686,x86_64]
H A Dlxc-fedora.in705 # yum will take $basearch from host, so force the arch we want
724 # yum will take $basearch from host, so force the arch we want
823 MIRRORLIST_URL="http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$release&arch=$basearch"
934 # yum will take $basearch from host, so force the arch we want
1129 lxc.arch = $arch
1184 [--fqdn=<network name of container>] [-a|--arch=<arch of the container>]
1197 -a,--arch Define what arch th
[all...]
H A Dlxc-download.in201 [ -a | --arch <architecture> ]: Architecture of the container
227 options=$(getopt -o d:r:a:hl -l dist:,release:,arch:,help,list,variant:,\
243 -a|--arch) DOWNLOAD_ARCH=$2; shift 2;;
/lxc/src/lxc/
H A Dseccomp.c151 SYSERROR("Failed to read host arch.");
182 uint32_t arch; local
185 case lxc_seccomp_arch_i386: arch = SCMP_ARCH_X86; break;
186 case lxc_seccomp_arch_x32: arch = SCMP_ARCH_X32; break;
187 case lxc_seccomp_arch_amd64: arch = SCMP_ARCH_X86_64; break;
188 case lxc_seccomp_arch_arm: arch = SCMP_ARCH_ARM; break;
190 case lxc_seccomp_arch_arm64: arch = SCMP_ARCH_AARCH64; break;
193 case lxc_seccomp_arch_ppc64le: arch = SCMP_ARCH_PPC64LE; break;
196 case lxc_seccomp_arch_ppc64: arch = SCMP_ARCH_PPC64; break;
199 case lxc_seccomp_arch_ppc: arch
245 do_resolve_add_rule(uint32_t arch, char *line, scmp_filter_ctx ctx, uint32_t action) argument
[all...]
H A Dconfile.h51 extern signed long lxc_config_parse_arch(const char *arch);
/lxc/src/python-lxc/examples/
H A Dapi_test.py53 arch = "i386" variable
61 arch = dpkg.stdout.read().strip() variable
66 print("Creating rootfs using 'download', arch=%s" % arch)
70 "arch": arch})
/lxc/src/python-lxc/lxc/
H A D__init__.py473 def arch_to_personality(arch):
477 if isinstance(arch, bytes):
478 arch = str(arch, 'utf-8')
479 return _lxc.arch_to_personality(arch)

Completed in 29 milliseconds