3bd24f75102c76401a78e165be90a9275eb8a39c |
|
20-Mar-2017 |
otofune <otofune@gmail.com> |
[templates] archlinux: noneed default_timezone variable
Signed-off-by: otofune <otofune@gmail.com> |
f8bed24cee10615813567e65629dd6124f7d7ac3 |
|
20-Mar-2017 |
otofune <otofune@gmail.com> |
[templates] archlinux: resolve conflicting files
- already found /etc/localtime
- duplicate creation /etc/resolv.conf
Signed-off-by: otofune <otofune@gmail.com> |
b91f0faeaa847774b7645b9172cc9a58277d1ed0 |
|
26-Oct-2016 |
Stéphane Graber <stgraber@ubuntu.com> |
archlinux: Fix resolving
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
2b67aaee94926d07dba6c6fea97d8ed138afa9d0 |
|
26-Oct-2016 |
Stéphane Graber <stgraber@ubuntu.com> |
archlinux: Do DHCP on eth0
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
69cbc333bd548771bdfaefc695e84cb355ec74d1 |
|
24-Jan-2016 |
Nicolas Porcel <nicolasporcel06@gmail.com> |
Fix typo in lxc-archlinux.in
Thank you vim!
Signed-off-by: Nicolas Porcel <nicolasporcel06@gmail.com> |
427d42930d99f93bf78c61ec9f555dd883c5039e |
|
30-Oct-2015 |
Jakub Sztandera <kubuxu@gmail.com> |
arch template: Fix systemd-sysctl service
The systemd-sysctl service includes condition that /proc/sys/ has to be read-write.
In lxc only /proc/sys/net/ is read-write which causes the condition to fail and service not to run.
This patch changes the check to /proc/sys/net/ and makes the service apply only rules that are in net tree.
Signed-off-by: Jakub Sztandera <kubuxu@gmail.com> |
8fefbee4062ed863d242763676d4c57bea2ffb4c |
|
25-Aug-2014 |
Bill Kolokithas <kolokithas.b@gmail.com> |
lxc-archlinux: Properly set default locale in /etc/locale.conf
Signed-off-by: Bill Kolokithas <kolokithas.b@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
23cc88bae05f790dcdfa9f511bbb60b2225692be |
|
27-Jun-2014 |
Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com> |
lxc-archlinux.in: update securetty when lxc.devttydir is set
Update container's /etc/securetty to allow console logins when lxc.devttydir is not empty.
Also use config entries provided by shared and common configuration files.
Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
99cbd2996bd5cebf1869c2f7637f6c9fc2004849 |
|
27-Jun-2014 |
Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com> |
lxc-archlinux.in: Add pacman keyring initialization back
Shuffle around usage text a bit and add missing -d while there.
Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
c194ffc100f488b08bae2d0df417fa9ffc507c7c |
|
24-Jun-2014 |
Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com> |
Update Arch Linux template and add common configuration files
Move common container configuration entries into template config.
Remove unnecessary service symlinking and configuration entries, as well as
guest configs and other redundant configuration, fix minor script bugs.
Clean up template command line, add -d option to allow disabling services.
Also enable getty's on all configured ttys to allow logins via lxc-console,
set lxc.tty value corresponding to default Arch /etc/securetty configuration.
This patch simplifies Arch Linux template a bit, while fixing some
longstanding issues. It also provides common configuration based on
files provided for Fedora templates.
Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
44464003ee219f4f74f43cef550a504c27bb16a7 |
|
13-May-2014 |
Edvinas Klovas <edvinas@pnd.io> |
archlinux template: fix lxc.root for btrfs backend
when using btrfs backend lxc-create first creates rootfs in /usr/lib/lxc/rootfs
directory before moving it to /var/lib/lxc or other directory supplied by the
command line. Archlinux template relied in $rootfs_path which made containers
created with btrfs backend have lxc.rootfs set to /usr/lib/lxc/rootfs. By using
$path instead of $rootfs_path we make sure that lxc.rootfs is always correct.
Signed-off-by: Edvinas Klovas <edvinas@pnd.io>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
31efc34cff23365a213f03b4f804885adae3fba6 |
|
07-May-2014 |
Edvinas Klovas <edvinas@pnd.io> |
archlinux template: added sigpwr handling to systemd (lxc-stop)
archlinux is using systemd and systemd's configuration does not have any
services setup to handle sigpwr hook which is sent by lxc-stop command. By
enabling sigpwr service we make sure that lxc-stop will work.
Signed-off-by: Edvinas Klovas <edvinas@pnd.io>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
8dac6e74c442c37134f5b2208b777735cc60a716 |
|
07-Apr-2014 |
Ryan Mulligan <ryan@ryantm.com> |
archlinux: add debugging info for missing network link
Signed-off-by: Ryan Mulligan <ryan@ryantm.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
21ca73b980b0888edaed6e1674870c28c1f515d8 |
|
05-Apr-2014 |
Leonid Isaev <lisaev@umail.iu.edu> |
archlinux: Code cleanups (v2)
Cleanups:
1. Do not modify container's /etc/hosts (archlinux uses /etc/nsswitch.conf)
2. Remove duplicate lines from config
3. Print a nicer final message
4. Get rid of some grep's
Signed-off-by: Leonid Isaev <lisaev@umail.iu.edu>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
6ee795d2e350d8c14fb546415f5c0205fbc6621d |
|
05-Apr-2014 |
Stéphane Graber <stgraber@ubuntu.com> |
Revert "archlinux: Code cleanups"
This reverts commit 34fd08f87bc2f9340c760721f5e5f728b49297a9. |
34fd08f87bc2f9340c760721f5e5f728b49297a9 |
|
05-Apr-2014 |
Leonid Isaev <lisaev@umail.iu.edu> |
archlinux: Code cleanups
Cleanups:
1. Do not modify container's /etc/hosts (archlinux uses /etc/nsswitch.conf)
2. Remove duplicate lines from config
3. Print a nicer final message
4. Get rid of some grep's in favor of bash regex
Signed-off-by: Leonid Isaev <lisaev@umail.iu.edu>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
44b036309bd11ecde9ddbfa05ee74070e7456d6c |
|
05-Apr-2014 |
Leonid Isaev <lisaev@umail.iu.edu> |
archlinux: Create per-container pacman host key
Do not copy the pacman master key from the host, as this opens it to
attacks; generate a new secret hostkey.
Signed-off-by: Leonid Isaev <lisaev@umail.iu.edu>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
b7b7d3884ef10bc2ba0f1aba35ee4f27858585bf |
|
05-Apr-2014 |
Leonid Isaev <lisaev@umail.iu.edu> |
archlinux: Fix default package selection
Do not cherry-pick packages for the default install to avoid dependency
issues. Instead, install the base group modulo blacklisted packages.
Signed-off-by: Leonid Isaev <lisaev@umail.iu.edu>
Acked-by: Stéphane Graber <stgraber@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> |
b408e70daff7b36ac1f0ef4c86f70072c2f38480 |
|
15-Jan-2014 |
Stéphane Graber <stgraber@ubuntu.com> |
Trailing whitespace
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
b335cf8d4b56a49d5bc3fd1229139c2595779891 |
|
14-Jan-2014 |
Stéphane Graber <stgraber@ubuntu.com> |
lxc-archlinux: Cleanup fstab
It's been brought to my attention that the read-only mount of /proc/sys
is causing problems to archlinux users, so instead just have LXC mount
proc and sysfs normally (read-write).
Reported-by: John Lane <john@lane.uk.net>
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
d0800999b2aff2c2445e1ac18905fddbfe71cb8c |
|
14-Jan-2014 |
John Lane <john@lane.uk.net> |
lxc-archlinux: optional --root_passwd argument
Signed-off-by: John Lane <john@lane.uk.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
012f591a7df0a3cb025905ba2e7d2033b550dac1 |
|
14-Jan-2014 |
John Lane <john@lane.uk.net> |
lxc-archlinux: support enabling systemd units
Signed-off-by: John Lane <john@lane.uk.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
734d0bed55ea17793510e1ce1de34ebc8c5eb6ab |
|
14-Jan-2014 |
John Lane <john@lane.uk.net> |
lxc-archlinux: support different architectures
Signed-off-by: John Lane <john@lane.uk.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
d8c77af0ae59a3c48a44a11c95b991bd10473713 |
|
14-Jan-2014 |
John Lane <john@lane.uk.net> |
lxc-archlinux: don't drop mknod capability
Signed-off-by: John Lane <john@lane.uk.net>
Acked-by: Stéphane Graber <stgraber@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> |
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> |
6139e7e52d914af89f2a204512c1345af56ce6e9 |
|
13-Mar-2013 |
Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com> |
Update lxc-archlinux template default config to use new options
Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
4852d800d11740225072579e8bd8c4b56df581ee |
|
08-Feb-2013 |
Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com> |
Update lxc-archlinux template.
Add mknod to lxc.cap.drop since udev is conditioned on CAP_MKNOD capability.
Update base package list.
Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
148315348760faf4ad822ded7c416d2de8050937 |
|
11-Jan-2013 |
Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com> |
Add 'config' option to lxc-archlinux template and fix getopt string
This option allows user to control installation repository and options
using alternative pacman configuration file.
Also remove unnecessary sed invocation during container configuration.
Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
f3849d01d8f31785bf933ffcf91a419c4ff2257d |
|
02-Jan-2013 |
Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com> |
Update lxc-archlinux template to work with systemd
Use arch-install-scripts for installation.
Signed-off-by: Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
75350ec8c77acad383eea8e36b2dc3faeea34460 |
|
06-Dec-2012 |
Stéphane Graber <stgraber@ubuntu.com> |
lxc-archlinux: Don't hardcode /var/lib/lxc in help
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> |
f8ddeaa5be7c883a3d14f977879f6dacaf7a6236 |
|
05-Dec-2012 |
Stéphane Graber <stgraber@ubuntu.com> |
lxc-archlinux.in: Apply same LXCPATH/LOCALSTATEDIR
lxc-archlinux was apparently left out of the last change, apply
the same modification as the other templates.
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> |
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> |
f6267d9011eea5074028dc44b49df3bd3df7443c |
|
10-Nov-2011 |
Alexander Vladimirov <idkfa@vlan1.ru> |
add lxc-archlinux template
Hi, here's the patch which adds Arch linux container template
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |