ebb0cc532b7943cdbaf1ec7f6f9ab6541d5a04d8 |
|
25-Mar-2017 |
Evgeni Golov <evgeni@debian.org> |
do not set the root password in the debian template
closes #302
Signed-off-by: Evgeni Golov <evgeni@debian.org> |
e839039c14ea997aaabe07368c33f4811b9bf606 |
|
20-Mar-2017 |
Evgeni Golov <evgeni@debian.org> |
squeeze is not a supported release anymore, drop the key
Signed-off-by: Evgeni Golov <evgeni@debian.org> |
ab9cac16ada3b718933472a41ac115bc04ffd578 |
|
15-Dec-2016 |
Santiago Ruano Rincón <santiago@debian.org> |
templates/lxc-debian.in: handle ppc hostarch -> powerpc
Signed-off-by: Santiago Ruano Rincón <santiago@debian.org>
Signed-off-by: Evgeni Golov <evgeni@debian.org> |
790c6b098308519af5c569179049b6c4f03770e5 |
|
15-Dec-2016 |
Santiago Ruano Rincón <santiago@debian.org> |
templates/lxc-debian.in: Fix typo in calling dpkg with --print-foreign-architectures option
Signed-off-by: Santiago Ruano Rincón <santiago@debian.org>
Signed-off-by: Evgeni Golov <evgeni@debian.org> |
730d7a6a72cbf7fdf761e70cfcd5260ebbd2961c |
|
15-Dec-2016 |
FooDeas <foodeas@aeberlein.de> |
templates: fix getty service startup
Commit bf39edb39ecaea25801d716aebef798885277992 broke the handling of the getty service file with an '@' character in filename. So the startup condition was not fixed.
Because the parameter was quoted with the causal commit, the escaping has to be removed.
Signed-off-by: Andreas Eberlein foodeas@aeberlein.de |
8da006e44b58824d803fe6586fb5174e8e2ebb6a |
|
17-Nov-2016 |
Stéphane Graber <stgraber@ubuntu.com> |
debian: Don't depend on libui-dialog-perl
This package doesn't exist in stretch anymore, and it's unclear why we
were depending on a library to begin with (as opposed to having it
brought by whatever needs it).
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
2658578ea76bb0203c5f3fc0cecffb6936c307a4 |
|
24-Sep-2016 |
Thierry Fauck <tfauck@free.fr> |
lxc-create -t debian fails on ppc64el arch
Template catches arch from uname -m, but for ppc64el system, arch reports ppc64le
which doesn't match image repo.
Signed-off-by: Thierry Fauck <tfauck@free.fr>
Signed-off-by: Serge Hallyn <serge@hallyn.com> |
cdb7b5a7bf10d276192c8342d1e7f69c4c1c02d1 |
|
14-Sep-2016 |
Maxime BESSON <maxime.besson@smile.fr> |
templates: remove creation of bogus directory
An incorrect quoting introduced in bf39edb caused a /{lib,etc} folder to
appear in Debian templates
The very next line :
mkdir -p "${rootfs}/etc/systemd/system/getty.target.wants
makes creating ${rootfs}/etc/systemd/system/ unnecessary in the first
place
Signed-off-by: Maxime Besson <maxime.besson@smile.fr> |
09b157d4437a50ca2c72ddb6ab3ee7838c35b377 |
|
14-Sep-2016 |
Christian Brauner <cbrauner@suse.de> |
templates: rm halt.target -> sigpwr.target symlink
Given commit 330ae3d350e060e5702a0e5ef5d0faeeeea8df6e:
lxccontainer: detect if we should send SIGRTMIN+3
This is required by systemd to cleanly shutdown. Other init systems should not
have SIGRTMIN+3 in the blocked signals set.
we should stop symlinking halt.target to sigpwr.target for systemd.
Signed-off-by: Christian Brauner <cbrauner@suse.de> |
6219206fc4e76d108f9bb2d0a8cd55b7070fd467 |
|
26-Aug-2016 |
James Cowgill <james410@cowgill.org.uk> |
templates: Add mips hostarch detection to debian
Signed-off-by: James Cowgill <james410@cowgill.org.uk> |
c71f845ce4728b16b18c6d145c13a2e81061376d |
|
11-Aug-2016 |
Andreas Freudenberg <andreas.freudenberg@licomonch.net> |
templates: make shellcheck (Ubuntu: 0.3.7-5 amd64) most possible happy
Signed-off-by: Andreas Freudenberg <andreas.freudenberg@licomonch.net> |
d7538219961a4cb12b0f7132be4c3bad713b4dd7 |
|
11-Aug-2016 |
Andreas Freudenberg <andreas.freudenberg@licomonch.net> |
templates: add more quotes to variables (at least $rootfs should now be covered)
Signed-off-by: Andreas Freudenberg <andreas.freudenberg@licomonch.net> |
66d0074a92cefb9a894590330dea6f6ac80b465b |
|
11-Aug-2016 |
Andreas Freudenberg <andreas.freudenberg@licomonch.net> |
templates: avoid noisy perl warnings caused by missing locales
Signed-off-by: Andreas Freudenberg <andreas.freudenberg@licomonch.net> |
ca53937eb9b555631cadf693176e92a0c7fb9506 |
|
11-Aug-2016 |
Antonio Terceiro <terceiro@debian.org> |
lxc-debian: fix regression when creating wheezy containers
The regression was introduced by commit
3c39b0b7a2b445e08d2e2aecb05566075f4f3423 which makes it possible to
create working stretch containers by forcinig `init` to be in the
included package list.
However, `init` didn't exit before jessie, so now for wheezy we
explicitly include `sysvinit`; sysvinit on wheezy is essential,
so it would already be included anyway.
Signed-off-by: Antonio Terceiro <terceiro@debian.org> |
7f5a16e41bb87f88725a3577d2a91ed5dc2db73e |
|
27-Jun-2016 |
Antonio Terceiro <terceiro@softwarelivre.org> |
lxc-debian: make sure init is installed
init 1.34 is not "Essential" anymore, in order to make it not required
on minimal chroots, docker containers, etc. Because of that we now need
to manually include it on systems that are expected to boot.
Signed-off-by: Antonio Terceiro <terceiro@debian.org> |
808652d14789bd6b1ad8e9113a22576cbbe20e69 |
|
30-Mar-2016 |
Evgeni Golov <evgeni@golov.de> |
update Debian release names
Squeeze is EOL now, Stretch is the upcoming stable
Signed-off-by: Evgeni Golov <evgeni@golov.de> |
57b40c0852281f8a5cfc4286b5020b3bfd3a16b9 |
|
26-Mar-2016 |
Evgeni Golov <evgeni@debian.org> |
only enable Debian's main repository by default
This inverts the logic done in c2a85d0 to default to "main only" and allow enabling contrib and non-free on user request.
Closes: #625
Signed-off-by: Evgeni Golov <evgeni@debian.org> |
95a1306d69cdbd48f519f11b996489fcab461b37 |
|
26-Mar-2016 |
Evgeni Golov <evgeni@debian.org> |
use httpredir.debian.org as the default Debian mirror
http.debian.net is an alias anyways and httpredir.debian.org is the official name of the service
Signed-off-by: Evgeni Golov <evgeni@debian.org> |
a3d42f4bd6313bf2a6e43d2cd64b379d1fce0f32 |
|
01-Jan-2016 |
Aron Podrigal <aronp@guaranteedplus.com> |
Fix #520 - multiple instances of agetty on systemd.
Fixes issue with double tty login lxc-console
Ref #520, #484
Signed-off-by: Aron Podrigal <aronp@guaranteedplus.com> |
114387972a2782b794da25202fd7f141ad94cba7 |
|
20-Nov-2015 |
Stéphane Graber <stgraber@ubuntu.com> |
debian: Fix container creation on missing cache
This is currently breaking our daily image builds which happen in a
perfectly clean environment without a Debian keyring and without
anything in /var/cache/lxc
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
f16fb156bb2ac6ff288900b8cc3b374d06fa80e8 |
|
10-Nov-2015 |
Virgil Dupras <hsoft@hardcoded.net> |
Fetch Debian archive GPG keyrings when they're not available
When running the debian template on a non-debian host, it's usual not to
have debian-archive-keyring.gpg. When that happens, we skip the
signature checking of the release, which is dangerous because it's made over
HTTP.
This commit adds automatic fetching of Debian release keys.
Strongly related to #409
Signed-off-by: Virgil Dupras <hsoft@hardcoded.net> |
4963978bb6e8f4eafc73bf0a3e93278b704ce784 |
|
28-Sep-2015 |
Stéphane Graber <stgraber@ubuntu.com> |
lxc-debian: We should only check the kernel architecture.
The dpkg architecture isn't relevant to LXC, only the kernel arch is.
Signed-off-by: Gergely Szasz <szaszg@hu.inter.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
92824ee04f799f2dbb70ea4843cc1c4e1f0e5a20 |
|
28-Aug-2015 |
David Noyes <david.j.noyes@gmail.com> |
Alternative test for dpkg multiarch support in lxc-debian template
Signed-off-by: David Noyes <david.j.noyes@gmail.com> |
c2a85d043b35d82087b85f8bfb75ae578f3d9ac3 |
|
27-Aug-2015 |
Antonio Terceiro <terceiro@debian.org> |
lxc-debian: allow not including contrib/non-free
Signed-off-by: Antonio Terceiro <terceiro@debian.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
6a082d5a1370cd57ed05cf24aa800ae73112e818 |
|
27-Aug-2015 |
Antonio Terceiro <terceiro@debian.org> |
lxc-debian: support stretch (Debian 9) images
Signed-off-by: Antonio Terceiro <terceiro@debian.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
28e58a6a4fc22a15e01b34874b5f8e9486e25e42 |
|
26-Aug-2015 |
David Noyes <david.noyes@plus.net> |
Test dpkg for multiarch support in lxc-debian template
Signed-off-by: David Noyes <david.j.noyes@gmail.com> |
d203007e63ed5f77773baede33f2ae9c7cc84b2a |
|
13-Aug-2015 |
Antonio Terceiro <terceiro@debian.org> |
lxc-debian: skip security updates for unstable/sid
There is no such thing as security support for unstable/sid.
Signed-off-by: Antonio Terceiro <terceiro@debian.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
114eb32f243e211b082a48db38d73f5440c137ba |
|
01-Jul-2015 |
有张纸 <f <fanyeren@gmail.com> |
debian template: reconfigure locales
Signed-off-by: feng xiahou <xiahoufeng@yahoo.com> |
192dbe6fdcd25be04d056cfb8657efe4438796f7 |
|
30-Jun-2015 |
有张纸 <f <fanyeren@gmail.com> |
debootstrap failed when $GREP_OPTIONS is set
debootstrap failed when $GREP_OPTIONS is set, so we need to unset it in the template
Signed-off-by: <feng xiahou xiahoufeng@yahoo.com> |
6dc6f80bfd7cb169948f2ef9a95dcf6d2edee853 |
|
11-Jun-2015 |
Kevin Carter <kevin.carter@rackspace.com> |
Added container-cache option to templates
This change adds in the container-cache option within the mainline
default lxc templates. The pupose here is to allow a template to
pull from a location that may not be `@LOCALSTATEDIR@/cache/lxc`
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> |
0f541e331323cc18e30a219650b16a1488a0a137 |
|
26-May-2015 |
有张纸 <f <fanyeren@gmail.com> |
Update lxc-debian.in
fix "bash: warning: setlocale: LC_ALL: cannot change locale"
Signed-off-by: <feng xiahou xiahoufeng@yahoo.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
19fcf68ffb173f146a95c613ae9ccbff45f63a21 |
|
12-May-2015 |
Cyril Bitterich <Cyril.Bitterich@1und1.de> |
lxc-debian.in: Fixed errors if dbus is not installed
The lxc-debian template debootstraps a minimum debian system which does not contain dbus.
If systemd is used this will result in getty-static.service to be used instead of getty@ .
The systemd default files uses 6 tty's instead of the 4 the script creates.
This will lead to repeated error messages in the systemd journal.
Signed-off-by: Cyril Bitterich <Cyril.Bitterich@1und1.de>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
f24a52d5f588ff4e4575046903fb9498c376d833 |
|
29-Jan-2015 |
Stéphane Graber <stgraber@ubuntu.com> |
Use consistent /proc, /sys and /sys/fs/cgroup (v2)
- Implements mixed mode for /sys where it's mounted read-only but with
/sys/devices/virtual/net/ writable.
- Sets lxc.mount.auto to "cgroup:mixed proc:mixed sys:mixed" for all
templates.
- Drop any template-specific mount for /proc, /sys or /sys/fs/cgroup.
- Get rid of the fstab file by default, using lxc.mount.entry instead.
- Set sys:mixed as the default for "sys". sys:mixed is slightly more
permissive than sys:ro so this shouldn't be a problem.
The read-only bind mount of /sys on top of itself is there so that
mountall and other init systems don't attempt to remount /sys
read-write.
v2 changes:
- Fix the mount list, don't specify a source for the remount.
- Update the documentation.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
9cbffb9f5767edb6f64c08f5e6e45dff6ac508a9 |
|
25-Jan-2015 |
Tomas Pospisek <tpo_hp@sourcepole.ch> |
improve "lxc-create -t debian -h" help text
- document environment variables
- add missing --packages switch to command line
- describe how to pass template options to lxc-create (since
lxc-create -h doesn't tell you)
- render help text in the same pretty format as lxc-create does
Signed-off-by: Tomáš Posíšek <tpo_deb@sourcepole.ch>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
d89de2399ce0e6c213a742c246574f2ca0afad0d |
|
21-Jan-2015 |
Stéphane Graber <stgraber@ubuntu.com> |
Set kmsg to 0 by default
It's now been proven over and over again that the symlink from /dev/kmsg
to /dev/console is harmful for everything but upstart systems. As Ubuntu
is now switching over to systemd too, lets switch the default.
Upstart users wishing to see boot messages can always set lxc.kmsg = 1
manually in their config (so long as they don't expect to then
dist-upgrade the container to systemd succesfuly).
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
124fa0a869c4cf5b4dc3ea2281446df32f0a7980 |
|
21-Jan-2015 |
Stéphane Graber <stgraber@ubuntu.com> |
Turn autodev on by default
Now that autodev works fine with unprivileged containers and shouldn't
come with any side effect, lets turn it on by default.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
227c560065b22f84e4e41724486863c31b77ac01 |
|
10-Jan-2015 |
Michael Adam <obnox@samba.org> |
lxc-debian: protect possibly unset variable with quotes for -z check
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
a64da4c358976823cf7dbd9b35b6c4e65e776d32 |
|
10-Jan-2015 |
Michael Adam <obnox@samba.org> |
lxc-debian: document "--clean" in the usage.
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
e4d4da621109307eb065ce3578fb1e0753157b74 |
|
10-Jan-2015 |
Michael Adam <obnox@samba.org> |
lxc-debian: fix parsing of option "--clean": it takes no argument.
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
ec64264d78d4ed608553842ce9e1f07eeab2a032 |
|
05-Dec-2014 |
Veres Lajos <vlajos@gmail.com> |
typofixes - https://github.com/vlajos/misspell_fixer
Signed-off-by: Veres Lajos <vlajos@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
4de03d375b49e7749605c8a45abc898317833f3f |
|
02-Dec-2014 |
Cameron Norman <CameronNemo@users.noreply.github.com> |
lxc-debian: mask both Wheezy and Jessie udev services
Signed-off-by: Cameron Norman <camerontnorman@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
2b75b644f8023fed4b215317ed806d822be3c106 |
|
02-Dec-2014 |
Cameron Norman <camerontnorman@gmail.com> |
lxc-debian: adjust init system configurations
Do as much as possible to allow containers switching from non-systemd to
systemd to work as intended (but nothing that will cause side effects).
Use update-rc.d disable instead of remove so the init scripts are not
re-enabled when the package is updated
Signed-off-by: Cameron Norman <camerontnorman@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
a9bf60bab547013a9873a3fb9efe61155e8694b8 |
|
24-Nov-2014 |
Antonio Terceiro <terceiro@debian.org> |
lxc-debian: support systemd as PID 1
Containers with systemd need a somewhat special setup, which I borrowed
and adapted from lxc-fedora. These changes are required so that Debian 8
(jessie) containers work properly, and are a no-op for previous Debian
versions.
Signed-off-by: Antonio Terceiro <terceiro@debian.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
5d20559cff01c773fe3b84d8697f0137b13938a5 |
|
06-Nov-2014 |
Gu1 <gu1@aeroxteam.fr> |
lxc-debian: Fix default mirrors
Fix a typo in the lines inserted in the default sources.list.
Change the default mirror to http.debian.net which is (supposedly) more
accurate and better than cdn.debian.net for a generic configuration.
Use security.debian.org directly for the {release}/updates repository.
Signed-off-by: Gu1 <gu1@aeroxteam.fr>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
177f2cd2c20771c2089c687031c41fe485e4600c |
|
09-Jul-2014 |
Alexander Dreweke <alexander@dreweke.net> |
lxc-debian: added support for package installation
- added --mirror, --security-mirror and --package parameters
- generate source.list
- install packages into final lxc instance
Signed-off-by: Alexander Dreweke <alexander@dreweke.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
b3d3f3c661a431b4645f0065e9f895d2f0505ca8 |
|
09-Jul-2014 |
Alexander Dreweke <alexander@dreweke.net> |
lxc-debian: standardize formatting
Signed-off-by: Alexander Dreweke <alexander@dreweke.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
cd44154ca7e36af36ea9722c45bf3f290fb2ca1c |
|
09-Jul-2014 |
Alexander Dreweke <alexander@dreweke.net> |
lxc-debian: fix formatting
added space ">/" -> "> /"
Signed-off-by: Alexander Dreweke <alexander@dreweke.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
23e880832b90190563b01fdd73fdcd5948492e52 |
|
21-Mar-2014 |
Holger Amann <holger@sauspiel.de> |
debian: Symlink /etc/mtab
/etc/mtab doesn’t exist after bootstrapping a debian container, and will
be created as regular file after first start.
That leads to at least two errors:
- output of `mount` is wrong and get messed up the more often you
start/stop the container
- /dev/pts/ptmx has wrong permissions
Signed-off-by: Holger Amann <holger@sauspiel.de>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
ef53625fe1b7d29fc0676564ddc28c96008384ac |
|
21-Mar-2014 |
Stéphane Graber <stgraber@ubuntu.com> |
lxc-debian: Don't eat the argument after -c
Reported-by: Robie Basak <robie.basak@canonical.com>
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
96283b546081e7ff709968378fca25cb44f1ab6c |
|
19-Feb-2014 |
Stéphane Graber <stgraber@ubuntu.com> |
templates: Fix bashisms in common code
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
207bf0e475f1dc6e9a2dac2cee3a209b56427855 |
|
06-Feb-2014 |
Stéphane Graber <stgraber@ubuntu.com> |
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> |
c63c04fcaf1c3a78c70500eae253d72fa9c8358a |
|
06-Feb-2014 |
TAMUKI Shoichi <tamuki@linet.gr.jp> |
templates: improve refusing to run unprivileged
For all templates except lxc-ubuntu-cloud and lxc-download, detect not
only --mapped-uid but also --mapped-gid and error out. Detecting will
not be done after -- parameter because of non-option parameters.
Also, change the mode of lxc-archlinux.in 100755 to 100644.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
8ec981fc8b0105da5f071e40811e0c2472a6c3c9 |
|
04-Feb-2014 |
Stéphane Graber <stgraber@ubuntu.com> |
templates: Refuse to run unprivileged
Only the download and ubuntu-cloud templates work with unprivileged
containers, for all others, detect --mapped-uid and error out as early
as possible, recommending the use of the download template.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
00fe5e1d19def221951c1bfcb631b47a2403c951 |
|
15-Jan-2014 |
Stéphane Graber <stgraber@ubuntu.com> |
debian: Switch to config includes
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
ce68d5b4810e2c8035b21bfb5f742804c104de5a |
|
15-Jan-2014 |
Stéphane Graber <stgraber@ubuntu.com> |
debian: Support ssh host keys regeneration
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
17abf2784de1047fb2904ff130ee5efe4ea7b598 |
|
14-Jan-2014 |
Elan Ruusamäe <glen@delfi.ee> |
handle simple bashisms:
- [[ ]] -> [ ]
- == -> =
- source -> .
- redirect of fd 200 is error in mksh, use fd 9
- &> /dev/null -> > /dev/null 2>&1
- useless function keyword
- echo -e -> printf
still left bash shebang which did not validate with checkbashism, mostly
due 'type' being reported as bashism
Signed-Off-By: Elan Ruusamäe <glen@delfi.ee>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
0a3673e80732ab83d807d406fb2fd3c3b7f54ad3 |
|
02-Dec-2013 |
Stéphane Graber <stgraber@ubuntu.com> |
Some tweak on previous change (timezone)
This adds the same code to the Debian-based templates (Ubuntu and Ubuntu
Cloud) and also avoids a needless fork.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
f7365a247b7582f858fab6a92270c21e43973bf5 |
|
02-Dec-2013 |
funditus <funditus@mail.ru> |
lxc-debian: Make timezone match the host
Set timezone in container as on the host
Signed-off-by: funditus <funditus@mail.ru>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
853d58fdf5af0960b7b6edc9dea0fadddb8535f1 |
|
25-Nov-2013 |
Elan Ruusamäe <glen@delfi.ee> |
use awk, instead of 'grep | awk'
Signed-off-by: Elan Ruusamäe <glen@delfi.ee>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
aea1cd3cb730117967c9671aa50f68d2b241c39e |
|
24-Oct-2013 |
Stéphane Graber <stgraber@ubuntu.com> |
lxc-debian: Add hwaddr handling logic
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
09da66e667e3bdeb0bae34eeb0e57cd92e35e650 |
|
17-Oct-2013 |
Laurent Vallar <val@zbla.net> |
lxc-debian: Remove perl, use sed instead
Signed-off-by: Laurent Vallar <val@zbla.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
90ccc878deddcb2ec31d9caa0686a666267acafe |
|
17-Oct-2013 |
Laurent Vallar <val@zbla.net> |
lxc-debian: Force locales generation
Signed-off-by: Laurent Vallar <val@zbla.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
1927a6be975ef18e69f617577967d53ee7d32a6c |
|
15-Oct-2013 |
Laurent Vallar <val@zbla.net> |
lxc-debian: Add --arch option
Signed-off-by: Laurent Vallar <val@zbla.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
b269b8ad75ec99e21c861bdb4210239b3a4eafc6 |
|
15-Oct-2013 |
Laurent Vallar <val@zbla.net> |
lxc-debian: Add support for --release
Signed-off-by: Laurent Vallar <val@zbla.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
250b1eec71b074acdff1c5f6b5a1f0d7d2c20b77 |
|
03-Sep-2013 |
Stéphane Graber <stgraber@ubuntu.com> |
licensing: Add missing headers and FSF address
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
1897e3bcd36af9f3fe6d3649910a9adb93e5e988 |
|
26-May-2013 |
Serge Hallyn <serge.hallyn@ubuntu.com> |
Move container creation fully into the api
1. implement bdev->create:
python and lua: send NULL for bdevtype and bdevspecs.
They'll want to be updated to pass those in in a way that makes
sense, but I can't think about that right now.
2. templates: pass --rootfs
If the container is backed by a device which must be mounted (i.e.
lvm) then pass the actual rootfs mount destination to the
templates.
Note that the lxc.rootfs can be a mounted block device. The template
should actually be installing the rootfs under the path where the
lxc.rootfs is *mounted*.
Still, some people like to run templates by hand and assume purely
directory backed containers, so continue to support that use case
(i.e. if no --rootfs is listed).
Make sure the templates don't re-write lxc.rootfs if it is
already in the config. (Most were already checking for that)
3. Replace lxc-create script with lxc_create.c program.
Changelog:
May 24: when creating a container, create $lxcpath/$name/partial,
and flock it. When done, close that file and unlink it. In
lxc_container_new() and lxcapi_start(), check for this file. If
it is locked, create is ongoing. If it exists but is not locked,
create() was killed - remove the container.
May 24: dont disk-lock during lxcapi_create. The partial lock
is sufficient.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
eee3ba81c88e64b8a732694fc4843a39d5bde491 |
|
01-May-2013 |
Serge Hallyn <serge.hallyn@ubuntu.com> |
templates: deny writes to host's clock (v2)
Don't allow write to /dev/rtc0, and remove sys_time.
Thanks, Christoph.
v2: drop sys_time, sys_module, mac_admin and mac_override in
all templates.
Reported-by: Christoph Mitasch <cmitasch@thomas-krenn.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
ed4616b1cfbc84dd01caa8546d813e8c5d482921 |
|
21-Apr-2013 |
Christian Bühler <christian@cbuehler.de> |
Use "uname -m" instead of "arch"
According to "arch"'s manpage, it's identical to "uname -m".
Some distros ship uname but don't ship arch, however all distros ship uname,
therefore it makes sense to use "uname -m" whenever possible.
Signed-off-by: Christian Bühler <christian@cbuehler.de>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
6efdcb6a3cc4d06bf64af69b08bc95335f02b79f |
|
10-Apr-2013 |
Dwight Engen <dwight.engen@oracle.com> |
debian template: set arch when dpkg doesn't exist on host
Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
fe253caa8b98854445aaf6ee253545ee1f13beb1 |
|
06-Dec-2012 |
Stéphane Graber <stgraber@ubuntu.com> |
templates: Consistent use of locking
Move to per-template lock (except for oracle that's per-container).
Also ensure that the path used for the lock is relative to LOCALSTATEDIR.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
14d9c0f09d1a55d124ef210a4b4e205c9fe7596c |
|
06-Dec-2012 |
Stéphane Graber <stgraber@ubuntu.com> |
Update for consistent indent
This commit updates all scripts using mixed indent to a consistent
4 spaces indent.
In the past quite a few of those scripts used tabs to instead of 8 spaces or
instead of 4 spaces, sometimes mixing those in the same line and sometimes
changing the tab width within the same file.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
eba7df9ee0a1963984ef212e7ddfc0e0835af288 |
|
06-Dec-2012 |
Stéphane Graber <stgraber@ubuntu.com> |
templates: Make generated config consistent
This updates all the templates and the configuration files to consistently
use "key = value" everywhere.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
44d397891e691ab994a69766cc72e57265b62da1 |
|
04-Dec-2012 |
Serge Hallyn <serge.hallyn@ubuntu.com> |
templates: use hardlink detection in rsync
I'm not sure whether we want this: is -H ubiquitous?
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Dwight Engen <dwight.engen@oracle.com> |
f79d43bbe70a01454049b77d6f15f6369744959e |
|
26-Nov-2012 |
Stéphane Graber <stgraber@ubuntu.com> |
Remove all trailing whitespaces.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
1881820ae4ff9004beef1bf7f04553580840441d |
|
12-Nov-2012 |
Serge Hallyn <serge.halyn@ubuntu.com> |
lxc-create: Make location of container rootfs configurable
Make 'dir' an explicit backing store type, which accepts '--dir rootfs'
as an option to specify a custom location for the container rootfs. Also
update lxc-destroy to now remove the rootfs separately, as removing
@LXCPATH@/$name may not hit it.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
06a1e1db99844b95e21c3b67964974f9032720ea |
|
25-Oct-2012 |
Stéphane Graber <stgraber@ubuntu.com> |
lxc-debian: replace isc-dhcp-server by isc-dhcp-client
The DHCP client should be isc-dhcp-client, not isc-dhcp-server.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
3f16e26c7063f5004cafe4cfd6d084b7e4d08d1f |
|
25-Oct-2012 |
Serge Hallyn <serge.hallyn@ubuntu.com> |
lxc-debian: specify isc-dhcp-server in package list
dhcp3-client does not exist in testing.
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1052972
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
6bf8daf9a2aa0d226bfd5b60c4b1580d17105320 |
|
25-Oct-2012 |
Stéphane Graber <stgraber@ubuntu.com> |
Add SIGINT and SIGPWR handler in lxc-debian
This adds a SIGINIT and SIGPWR handler in the default inittab for
the Debian template. This allows lxc-shutdown/lxc-restart and their API calls
to properly shutdown or reboot the container.
Signed-off-by: Rex Tsai (蔡志展) <rex.tsai@canonical.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
f02ce27d4b1a9d01b88d0ffaf626e5bafa671bf0 |
|
25-Oct-2012 |
Stéphane Graber <stgraber@ubuntu.com> |
Add lxc.aa_profile example to all templates
LXC has optional apparmor support, default profile is lxc-container-default.
This change adds a commented "lxc.aa_profile = default" line to all templates,
uncommenting this will bypass apparmor for the container.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
f1ccde27c038e7fb7e538913505248b36ddd9e65 |
|
25-Oct-2012 |
Serge Hallyn <serge.halyn@ubuntu.com> |
ubuntu and debian templates: Clean up cache if cache build is interrupted
Otherwise the next lxc-create may rsync a bad cache.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
add1d11833394aaa3a3497c2fdf548e5b14c80d4 |
|
31-Jul-2012 |
Serge Hallyn <serge.hallyn@ubuntu.com> |
templates: don't fail on busy flock
Just wait until the lock is available. That is a nicer behavior
for concurrent lxc-creates.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
80a881b232b8955b85b360d4def99e6e680ff61b |
|
31-Jul-2012 |
Serge Hallyn <serge.hallyn@ubuntu.com> |
templates: use relative paths when creating containers
At the same time, allow lxc.mount.entry to specify an absolute target
path relative to /var/lib/lxc/CN/rootfs, even if rootfs is a blockdev.
Otherwise all such entries are ignored for blockdev-backed containers.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
6d8ac56b658a7aa35a46580c2df060c58ef02821 |
|
26-Feb-2012 |
Serge Hallyn <serge.hallyn@canonical.com> |
add lvm support to lxc-create
1. Some templates copy the cached pristine rootfs using 'cp a b' where b is
$lxc_path/$name/rootfs. That doesn't do the right thing if rootfs already
exists, as it will when it is an lvm or other mount. So switch to
'rsync a/ b/'. (cp can be made to work too of course).
2. Update lxc-create to support backing stores. For now only lvm is
implemented.
Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
165015211fa9506b11ea1f4540d54b8a99a2f468 |
|
13-Sep-2011 |
Tzafrir Cohen <tzafrir@cohens.org.il> |
Set the utsname on the debian template
Signed-off-by: Tzafrir Cohen <tzafrir@cohens.org.il>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
3930b7453e9b6d3cc77bf8433f04c446da949060 |
|
26-May-2011 |
Stéphane Graber <stgraber@ubuntu.com> |
Convert all Debian (and derivative) templates from using 'arch' to using 'dpkg --print-architecture' as debootstrap does |
f66331efb095656e555d65e413808dc8d3f71587 |
|
07-May-2011 |
Daniel Lezcano <daniel.lezcano@free.fr> |
templates: don't put devpts in $confdir/container/fstab
src/lxc/conf.c will explicitly mount it anyway. Furthermore, the fstab
entry, which is getting processed first, did not specify -o newinstance.
This can cause the host's devpts entry mount options to change, as in
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/607636.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
7593bdfbe25a70eddbfa9b9411e989e0b6564cab |
|
19-Feb-2011 |
Amit Uttamchandani <auttamchandani@canoga.com> |
Fixed a small typo in lxc-debian template
"udpate" should be "update" in configure_debian().
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
57f61aa7504fc965b0c3dca2e1553ad535eacfd8 |
|
28-Dec-2010 |
Daniel Baumann <daniel.baumann@progress-technologies.net> |
Correcting charset argument when calling locale-gen.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
346645ef7435dd14a115684b95c2c29e6fcc1f07 |
|
28-Dec-2010 |
Daniel Baumann <daniel.baumann@progress-technologies.net> |
Correcting include argument when calling debootstrap.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
0b2fa08ea6719b56e316c0d9513c09a5a169838e |
|
28-Dec-2010 |
Daniel Baumann <daniel.baumann@progress-technologies.net> |
Disabling unneeded checkroot.sh initscript in debian template.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
4e0eb76555a8365da02dff70a03355a7562b1ead |
|
28-Dec-2010 |
Daniel Baumann <daniel.baumann@progress-technologies.net> |
Creating missing tty device nodes for squeeze in debian template.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
49a630b8f39731511a1a0bfde890803644a2c596 |
|
28-Dec-2010 |
Daniel Baumann <daniel.baumann@progress-technologies.net> |
Setting default mirror to cdn.debian.net in debian template.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
9116540be492f01e6d6e7fb025f014e7f6adad42 |
|
28-Dec-2010 |
Daniel Baumann <daniel.baumann@progress-technologies.net> |
Setting default suite to squeeze in debian template.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
2a7c16dc03c36473717bbaccd302856bea559740 |
|
01-Oct-2010 |
Daniel Lezcano <daniel.lezcano@free.fr> |
improve lxc-debian template to specify the suite
The attached patch adds a variable at the top of lxc-debian to change the SUITE.
Currently tested suites are lenny, squeeze, sid.
Also, the patch uses the dhcp3-client package instead of dhcp-client which is
deprecated in lenny and removed in squeeze.
Patch initialy from Mathieu Parent.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
a7dff83460f259c934da8eb2aef0eac5b437b808 |
|
23-Jun-2010 |
Daniel Lezcano <daniel.lezcano@free.fr> |
fix /proc not mounted in debian container
Mount some systemm fs for the container. By default, /proc
is no longer mounted in debian.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
f1fa1a0866f2dc4ff0fc48f58d8a261b21b7d888 |
|
07-Jun-2010 |
Daniel Lezcano <daniel.lezcano@free.fr> |
generate locales on debian
Let's do like the ubuntu template and generate locales automatically.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
c01d62f21b21ba6c2b8b78ab3c2b37cc8f8fd265 |
|
07-Jun-2010 |
Daniel Lezcano <dlezcano@fr.ibm.com> |
move script templates to an adequate place
At present the lxc-{template} scripts are installed in the $bindir.
This is not the right place as specified by the FHS, so they go to
$libdir/lxc/templates.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |