Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
207bf0e4
Commit
207bf0e4
authored
Feb 06, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
4eb706b3
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
51 additions
and
0 deletions
+51
-0
lxc-alpine.in
templates/lxc-alpine.in
+3
-0
lxc-altlinux.in
templates/lxc-altlinux.in
+3
-0
lxc-archlinux.in
templates/lxc-archlinux.in
+3
-0
lxc-busybox.in
templates/lxc-busybox.in
+3
-0
lxc-centos.in
templates/lxc-centos.in
+3
-0
lxc-cirros.in
templates/lxc-cirros.in
+3
-0
lxc-debian.in
templates/lxc-debian.in
+3
-0
lxc-download.in
templates/lxc-download.in
+3
-0
lxc-fedora.in
templates/lxc-fedora.in
+3
-0
lxc-gentoo.in
templates/lxc-gentoo.in
+3
-0
lxc-openmandriva.in
templates/lxc-openmandriva.in
+3
-0
lxc-opensuse.in
templates/lxc-opensuse.in
+3
-0
lxc-oracle.in
templates/lxc-oracle.in
+3
-0
lxc-plamo.in
templates/lxc-plamo.in
+3
-0
lxc-sshd.in
templates/lxc-sshd.in
+3
-0
lxc-ubuntu-cloud.in
templates/lxc-ubuntu-cloud.in
+3
-0
lxc-ubuntu.in
templates/lxc-ubuntu.in
+3
-0
No files found.
templates/lxc-alpine.in
View file @
207bf0e4
...
...
@@ -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"
...
...
templates/lxc-altlinux.in
View file @
207bf0e4
...
...
@@ -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
...
...
templates/lxc-archlinux.in
View file @
207bf0e4
...
...
@@ -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"
...
...
templates/lxc-busybox.in
View file @
207bf0e4
...
...
@@ -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
;
}
...
...
templates/lxc-centos.in
View file @
207bf0e4
...
...
@@ -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.
...
...
templates/lxc-cirros.in
View file @
207bf0e4
...
...
@@ -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"
...
...
templates/lxc-debian.in
View file @
207bf0e4
...
...
@@ -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@"
...
...
templates/lxc-download.in
View file @
207bf0e4
...
...
@@ -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
...
...
templates/lxc-fedora.in
View file @
207bf0e4
...
...
@@ -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.
...
...
templates/lxc-gentoo.in
View file @
207bf0e4
...
...
@@ -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
...
...
templates/lxc-openmandriva.in
View file @
207bf0e4
...
...
@@ -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
)
...
...
templates/lxc-opensuse.in
View file @
207bf0e4
...
...
@@ -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
()
...
...
templates/lxc-oracle.in
View file @
207bf0e4
...
...
@@ -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
...
...
templates/lxc-plamo.in
View file @
207bf0e4
...
...
@@ -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"
}
...
...
templates/lxc-sshd.in
View file @
207bf0e4
...
...
@@ -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
...
...
templates/lxc-ubuntu-cloud.in
View file @
207bf0e4
...
...
@@ -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
...
...
templates/lxc-ubuntu.in
View file @
207bf0e4
...
...
@@ -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@"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment