mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 17:12:14 +00:00
templates: Make sure usual locations are in PATH
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
4eb706b3ce
commit
207bf0e475
@ -10,6 +10,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
key_sha256sums="9c102bcc376af1498d549b77bdbfa815ae86faa1d2d82f040e616b18ef2df2d4 alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
|
||||
2adcf7ce224f476330b5360ca5edb92fd0bf91c92d83292ed028d7c4e26333ab alpine-devel@lists.alpinelinux.org-4d07755e.rsa.pub"
|
||||
|
||||
|
@ -34,6 +34,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
#Configurations
|
||||
arch=$(uname -m)
|
||||
cache_base=@LOCALSTATEDIR@/cache/lxc/altlinux/$arch
|
||||
|
@ -35,6 +35,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
# defaults
|
||||
arch=$(uname -m)
|
||||
lxc_network_type="veth"
|
||||
|
@ -30,6 +30,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
am_in_userns() {
|
||||
[ -e /proc/self/uid_map ] || { echo no; return; }
|
||||
[ "$(wc -l /proc/self/uid_map | awk '{ print $1 }')" -eq 1 ] || { echo yes; return; }
|
||||
|
@ -82,6 +82,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
if [ -e /etc/os-release ]
|
||||
then
|
||||
# This is a shell friendly configuration file. We can just source it.
|
||||
|
@ -31,6 +31,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
VERBOSITY=0
|
||||
DOWNLOAD_URL="http://download.cirros-cloud.net/"
|
||||
CACHE_D="@LOCALSTATEDIR@/cache/lxc/cirros"
|
||||
|
@ -30,6 +30,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
MIRROR=${MIRROR:-http://cdn.debian.net/debian}
|
||||
LOCALSTATEDIR="@LOCALSTATEDIR@"
|
||||
LXC_TEMPLATE_CONFIG="@LXCTEMPLATECONFIG@"
|
||||
|
@ -58,6 +58,9 @@ if [ -n "${http_proxy:-}" ]; then
|
||||
DOWNLOAD_KEYSERVER="${DOWNLOAD_KEYSERVER}:80"
|
||||
fi
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
# Some useful functions
|
||||
cleanup() {
|
||||
if [ -d "$DOWNLOAD_TEMP" ]; then
|
||||
|
@ -82,6 +82,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
if [ -e /etc/os-release ]
|
||||
then
|
||||
# This is a shell friendly configuration file. We can just source it.
|
||||
|
@ -23,6 +23,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
# Ensure strict root's umask doesen't render the VM unusable
|
||||
umask 022
|
||||
|
||||
|
@ -36,6 +36,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
#Configurations
|
||||
#distro=cooker
|
||||
hostarch=$(uname -m)
|
||||
|
@ -35,6 +35,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
DISTRO=12.3
|
||||
|
||||
configure_opensuse()
|
||||
|
@ -37,6 +37,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
# use virbr0 that is setup by default by libvirtd
|
||||
lxc_network_type=veth
|
||||
lxc_network_link=virbr0
|
||||
|
@ -38,6 +38,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
[ -r /etc/default/lxc ] && . /etc/default/lxc
|
||||
|
||||
DLSCHEME=${DLSCHEME:-"http"}
|
||||
|
@ -30,6 +30,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
install_sshd()
|
||||
{
|
||||
rootfs=$1
|
||||
|
@ -28,6 +28,9 @@ LXC_TEMPLATE_CONFIG="@LXCTEMPLATECONFIG@"
|
||||
KNOWN_RELEASES="lucid precise quantal saucy trusty"
|
||||
skip_arch_check=${UCTEMPLATE_SKIP_ARCH_CHECK:-0}
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
if [ -r /etc/default/lxc ]; then
|
||||
. /etc/default/lxc
|
||||
fi
|
||||
|
@ -34,6 +34,9 @@ for arg in "$@"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure the usual locations are in PATH
|
||||
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
set -e
|
||||
|
||||
LOCALSTATEDIR="@LOCALSTATEDIR@"
|
||||
|
Loading…
Reference in New Issue
Block a user