]> git.proxmox.com Git - mirror_lxc.git/log
mirror_lxc.git
12 years agoDon't raise error if container didn't sys_reboot
Serge Hallyn [Tue, 7 Feb 2012 15:01:41 +0000 (09:01 -0600)]
Don't raise error if container didn't sys_reboot

Don't call it an error if a container exits without calling sys_reboot.
Particularly since that will almost always be the case with lxc-execute.
This fixes a regression introduced in commit
"49296e2ebfe7c5f9d6ebafbb54f5c5e56a0cc085: support proper container
reboot"

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-ubuntu: Support for building a container of a foreign architecture
Serge Hallyn [Fri, 3 Feb 2012 15:29:14 +0000 (09:29 -0600)]
lxc-ubuntu: Support for building a container of a foreign architecture

Support building a container of a foreign architecture if
qemu-user-static is installed.  This is done by installing some packages
of the host architecture in the container using multi-arch.

Author: Stéphane Graber <stgraber@ubuntu.com>
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-start: exit early and cleanly if we have insufficient privs
Serge Hallyn [Thu, 2 Feb 2012 21:54:53 +0000 (15:54 -0600)]
lxc-start: exit early and cleanly if we have insufficient privs

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agorecursively delete cgroups on container shutdown
Serge Hallyn [Thu, 2 Feb 2012 21:52:35 +0000 (15:52 -0600)]
recursively delete cgroups on container shutdown

If a container has created its own cgroups, i.e. by running libvirtd,
then if we don't delete all child cgroups, then the rmdir will fail.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agofix lxc-netstat for nested cgroups
Serge Hallyn [Thu, 2 Feb 2012 21:48:17 +0000 (15:48 -0600)]
fix lxc-netstat for nested cgroups

Use the correct path for the container's cgroup task file.

Also exit out early and cleanly if the container is not running,
and bind-mount /proc/$pid/net with '-n' to keep the entry out
of mtab, else the mtab entry will never go away.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agosupport proper container reboot
Serge Hallyn [Wed, 25 Jan 2012 04:05:28 +0000 (22:05 -0600)]
support proper container reboot

This patch looks for Daniel's kernel patch allowing the lxc monitor
to tell container reboot from shutdown based on the exit signal.  If
that patch is not there, utmp monitoring is used.  Otherwise, it only
looks for the signal.  Note that the 'conf->need_utmp_watch' is
technically not necessary, as there is no harm in watching the utmp
file.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-create: fix error with lvm
Serge Hallyn [Mon, 23 Jan 2012 23:26:25 +0000 (17:26 -0600)]
lxc-create: fix error with lvm

when --lvname is given, use that for lvcreate instead of using
lxc_name, which is wrong.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-clone.in: define localstatedir, as @LXCPATH@ might be defined in terms of it
Serge Hallyn [Mon, 23 Jan 2012 23:12:46 +0000 (17:12 -0600)]
lxc-clone.in: define localstatedir, as @LXCPATH@ might be defined in terms of it

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoadd lvm support to lxc-create
Serge Hallyn [Mon, 23 Jan 2012 19:25:11 +0000 (13:25 -0600)]
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>
12 years agoFix several nagging bugs in lxc-destroy
Serge Hallyn [Mon, 23 Jan 2012 18:59:14 +0000 (12:59 -0600)]
Fix several nagging bugs in lxc-destroy

Don't delete a running container.  If it's running, abort the delete
unless a new '-f' (force) flag is given, in which case, stop it first.

Handle the case where we can't find $rootfs in config

Fix broken detection of lvm backing store

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoSupport nested cgroups
Serge Hallyn [Mon, 23 Jan 2012 18:07:44 +0000 (12:07 -0600)]
Support nested cgroups

With this patch, I can start a container 'o1' inside another container 'o1'.
(Of course, the containers must be on a different subnet)

Detail:

1. Create cgroups for containers under /lxc.

2. Support nested lxc: respect init's cgroup:

Create cgroups under init's cgroup.  So if we start a container c2
inside a container 'c1', we'll use /sys/fs/cgroup/freezer/lxc/c1/lxc/c2
instead of /sys/fs/cgroup/freezer/c2.  This allows a container c1
to be created inside container c1  It also allow a container's limits
to be enforced on all a container's children (which a MAC policy could
already enforce, in which case current lxc code would be unable to nest
altogether).

3. Finally, if a container's cgroup already exists, rename it rather than
failing to start the container.  Try to WARN the user so they might go
clean the old cgroup up.

Whereas without this patch, container o1's cgroup would be
/sys/fs/cgroup/<subsys>/o1,
it now becomes
/sys/fs/cgroup/<subsys>/<initcgroup>/lxc/o1
so if init is in cgroup '/' then o1's freezer cgroup would be:
/sys/fs/cgroup/freezer/lxc/o1

Changelog:
. make lxc-ps work with separate mtab.  If cgroups were mounted with -n,
  and mtab is not linked to /proc/self/mounts, then 'mount -t cgroup' won't
  show these mounts.  So make lxc-ps not use it, but rather use
  /proc/self/mounts directly.
. lxc-ls in the past assumed that a container's cgroup was just '/<name>'.
  Now it is '/<host-init-cgroup>/lxc/<name>'.  Handle that.
. first version of this patch was setting clone_children on
  <path-to-cpusets-cgroup>/<init-cgroup>/lxc, not the parent of that dir.
  That failed to initialize that cgroup, so tasks could not enter it.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-ubuntu: use release-updates and release-security
Serge Hallyn [Mon, 23 Jan 2012 18:05:40 +0000 (12:05 -0600)]
lxc-ubuntu: use release-updates and release-security

Particularly for LTS releases, which many people will want to use in
their containers, it is not wise to not use -security and -updates.
Furthermore the fix allowing ssh to allow the container to shut down
is in lucid-updates only.

With this patch, after debootstrapping a container, we add -updates
and -security to sources.list and do an apt-get upgrade under chroot.
Unfortunately we need to do this because debootstrap doesn't know how
to.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-ubuntu: add /dev/full, /dev/hpet, and /dev/kvm to devices whitelist
Serge Hallyn [Mon, 23 Jan 2012 17:59:56 +0000 (11:59 -0600)]
lxc-ubuntu: add /dev/full, /dev/hpet, and /dev/kvm to devices whitelist

Thanks for Scott Moser for these, which allows qemu to run inside a container.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agodrop mac_admin and mac_override
Serge Hallyn [Mon, 23 Jan 2012 17:57:59 +0000 (11:57 -0600)]
drop mac_admin and mac_override

mac_admin stops the container from loading LSM policy.  Neither
selinux nor apparmor currently will do well with automatic namespacing
of policy (though it's coming in apparmor, after which we can re-enable
this).

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoAdd new 'precise' release to ubuntu template
Serge Hallyn [Mon, 23 Jan 2012 17:55:38 +0000 (11:55 -0600)]
Add new 'precise' release to ubuntu template

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoAdd MIPS as a supported architecture
Kevin Cernekee [Sat, 25 Feb 2012 23:49:48 +0000 (00:49 +0100)]
Add MIPS as a supported architecture

The issue is similar to what was fixed in commit e7eb632c for ARM:
the "configure" script errors out because it is unable to set
LINUX_SRCARCH.  Fix is to add MIPS to the list.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agofix-automake-1.13
Jon Nordby [Thu, 23 Feb 2012 08:57:26 +0000 (09:57 +0100)]
fix-automake-1.13

## 0001-Replace-pkglib_PROGRAMS-with-pkglibexec_PROGRAMS.patch [diff]
From 95c566740bba899acc7792c11fcdb3f4d32dcfc9 Mon Sep 17 00:00:00 2001
From: Jon Nordby <jononor@gmail.com>
Date: Fri, 10 Feb 2012 11:38:35 +0100
Subject: [PATCH] Replace pkglib_PROGRAMS with pkglibexec_PROGRAMS

Without this change, autogen.sh fails with automake 1.11.3

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoAdd man page for lxc-attach
Christian Seiler [Thu, 23 Feb 2012 08:57:14 +0000 (09:57 +0100)]
Add man page for lxc-attach

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-attach: Drop privileges when attaching to container unless requested otherwise
Christian Seiler [Thu, 23 Feb 2012 08:57:14 +0000 (09:57 +0100)]
lxc-attach: Drop privileges when attaching to container unless requested otherwise

lxc-attach will now put the process that is attached to the container into
the correct cgroups corresponding to the container, set the correct
personality and drop the privileges.

The information is extracted from entries in /proc of the init process of
the container. Note that this relies on the (reasonable) assumption that the
init process does not in fact drop additional capabilities from its bounding
set.

Additionally, 2 command line options are added to lxc-attach: One to prevent
the capabilities from being dropped and the process from being put into the
cgroup (-e, --elevated-privileges) and a second one to explicitly state the
architecture which the process will see, (-a, --arch) which defaults to the
container's current architecture.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoMove lxc_attach from namespace.c to attach.c and rename it to lxc_attach_to_ns
Christian Seiler [Thu, 23 Feb 2012 08:57:14 +0000 (09:57 +0100)]
Move lxc_attach from namespace.c to attach.c and rename it to lxc_attach_to_ns

Since lxc-attach helper functions now have an own source file, lxc_attach is
moved from namespace.c to attach.c and is renamed to lxc_attach_to_ns,
because that better reflects what the function does (attaching to a
container can also contain the setting of the process's personality, adding
it to the corresponding cgroups and dropping specific capabilities).

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoAdd attach.[ch]: Helper functions for lxc-attach
Christian Seiler [Thu, 23 Feb 2012 08:57:14 +0000 (09:57 +0100)]
Add attach.[ch]: Helper functions for lxc-attach

The following helper functions for lxc-attach are added to a new file
attach.c:
 - lxc_proc_get_context_info: Get cgroup memberships, personality and
   capability bounding set from /proc for a given process.
 - lxc_proc_free_context_info: Free the data structure responsible
 - lxc_attach_proc_to_cgroups: Add the process specified by the pid
   parameter to the cgroups given by the ctx parameter.
 - lxc_attach_drop_privs: Drop capabilities to the capability mask given in
   the ctx parameter.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoAdd lxc_config_parse_arch to parse architecture strings
Christian Seiler [Thu, 23 Feb 2012 08:57:14 +0000 (09:57 +0100)]
Add lxc_config_parse_arch to parse architecture strings

Add the function lxc_config_parse_arch that parses an architecture string
(x86, i686, x86_64, amd64) and returns the corresponding personality. This
is required for lxc-attach, which accepts architectures independently of
lxc.arch. The parsing of lxc.arch now also uses the same function to ensure
consistency.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agocgroup: Make cgroup_attach a public function
Christian Seiler [Thu, 23 Feb 2012 08:57:14 +0000 (09:57 +0100)]
cgroup: Make cgroup_attach a public function

lxc-attach needs to be able to attach a process to specific cgroup, so
cgroup_attach is renamed to lxc_cgroup_attach and now also defined in the
header file.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoEnable get_cgroup_mount to search for mount points satisfying multiple subsystems...
Christian Seiler [Thu, 23 Feb 2012 08:57:13 +0000 (09:57 +0100)]
Enable get_cgroup_mount to search for mount points satisfying multiple subsystems at once

lxc-attach functionality reads /proc/init_pid/cgroup to determine the cgroup
of the container for a given subsystem. However, since subsystems may be
mounted together, we want to be on the safe side and be sure that we really
find the correct mount point, so we allow get_cgroup_mount to check for
*all* the subsystems; the subsystem parameter may now be a comma-separated
list.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoAdd missing double-include #ifndef/#define/#endif to confile.h
Christian Seiler [Thu, 23 Feb 2012 08:57:13 +0000 (09:57 +0100)]
Add missing double-include #ifndef/#define/#endif to confile.h

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoAdd missing 'extern' keyword to functions defined in cgroup.h
Christian Seiler [Thu, 23 Feb 2012 08:57:13 +0000 (09:57 +0100)]
Add missing 'extern' keyword to functions defined in cgroup.h

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoAccept numeric values for capabilities to drop
Christian Seiler [Thu, 23 Feb 2012 08:57:13 +0000 (09:57 +0100)]
Accept numeric values for capabilities to drop

lxc.cap.drop now also accepts numeric values for capabilities. This allows
the user to specify capabilities LXC doesn't know about yet or capabilities
that were not part of the kernel headers LXC was compiled against.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoAdd CAP_SYSLOG and CAP_WAKE_ALARM to list of capabilities
Christian Seiler [Thu, 23 Feb 2012 08:57:13 +0000 (09:57 +0100)]
Add CAP_SYSLOG and CAP_WAKE_ALARM to list of capabilities

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoAdd function to determine CAP_LAST_CAP of the current kernel dynamically
Christian Seiler [Thu, 23 Feb 2012 08:57:13 +0000 (09:57 +0100)]
Add function to determine CAP_LAST_CAP of the current kernel dynamically

The function lxc_caps_last_cap() determines CAP_LAST_CAP of the current kernel
dynamically. It first tries to read /proc/sys/kernel/cap_last_cap. If that
fails, because the kernel does not support this interface yet, it loops
through all capabilities and tries to determine whether the current capability
is part of the bounding set. The first capability for which prctl() fails is
considered to be CAP_LAST_CAP.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agocorrectly install signal handler for lxc-init
Jian Xiao [Thu, 23 Feb 2012 08:57:13 +0000 (09:57 +0100)]
correctly install signal handler for lxc-init

This patch is to correct the manipulation of signal masks when
installing signal handlers for lxc-init.

Signed-off-by: Jian Xiao <jian@linux.vnet.ibm.com>
Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoremove redundent LXC_TTY_HANDLER
Jian Xiao [Thu, 23 Feb 2012 08:57:13 +0000 (09:57 +0100)]
remove redundent LXC_TTY_HANDLER

All the signals (except fatal ones) are redirected to signalfd at lxc_init,
so the LXC_TTY_HANDLERs are redundant. This patch removes them.

Signed-off-by: Jian Xiao <jian@linux.vnet.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolimit rm to rootfs, avoiding nuking of any bind mounts from
andrea rota [Wed, 21 Dec 2011 12:10:47 +0000 (12:10 +0000)]
limit rm to rootfs, avoiding nuking of any bind mounts from

the host

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc: add Bugs section to lxc-monitor(1)
Greg Kurz [Thu, 5 Jan 2012 22:34:46 +0000 (23:34 +0100)]
lxc: add Bugs section to lxc-monitor(1)

This lxc-monitor limitation deserves some lines in the manpage, until
something is done to allow several monitors to run concurrently.

Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc: line buffered output for lxc-monitor
Greg Kurz [Thu, 5 Jan 2012 22:34:46 +0000 (23:34 +0100)]
lxc: line buffered output for lxc-monitor

A typical usage is to start lxc-monitor in popen() and parse the ouput.
Unfortunately, glibc defaults to block buffering for pipes and you may
have to wait several lines before anything is written to stdout... this
prevent the use of lxc-monitor to implement automatons. Let's go line
buffered !

Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoubuntu template: use -updates and -security (v3)
Serge Hallyn [Thu, 5 Jan 2012 22:34:46 +0000 (23:34 +0100)]
ubuntu template: use -updates and -security (v3)

Particularly for LTS releases, which many people will want to use in
their containers, it is not wise to not use release-security and
release-updates.  Furthermore the fix allowing ssh to allow the container
to shut down is in lucid-updates only.

With this patch, after debootstrapping a container, we add -updates and
-security to sources.list and do an upgrade under chroot.  Unfortunately
we need to do this because debootstrap doesn't know how to.

Changelog:
Nov 14: as Stéphane Graber suggested, make sure no daemons start on
the host while doing dist-upgrade from chroot.
Nov 15: use security.ubuntu.com, not mirror. (stgraber)

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoFix ia64 clone
Daniel Lezcano [Thu, 5 Jan 2012 21:45:32 +0000 (22:45 +0100)]
Fix ia64 clone

Fix the stack address for ia64.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoFix network cleanup on error
Daniel Lezcano [Thu, 5 Jan 2012 21:45:32 +0000 (22:45 +0100)]
Fix network cleanup on error

Network cleanup does not cleanup correctly the virtual interfaces
in case of an error.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agogive explicit error when the cgroup are not found
Daniel Lezcano [Thu, 5 Jan 2012 21:45:31 +0000 (22:45 +0100)]
give explicit error when the cgroup are not found

When the cgroup is not mounted, we silently exit without giving
some clues to the user with what is happening.

Give some info and an explicit error.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agofix indentation of the previous patch
Daniel Lezcano [Thu, 5 Jan 2012 21:45:31 +0000 (22:45 +0100)]
fix indentation of the previous patch

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoSet high byte of mac addresses for host veth devices to 0xfe
Christian Seiler [Tue, 15 Nov 2011 17:53:53 +0000 (18:53 +0100)]
Set high byte of mac addresses for host veth devices to 0xfe

When used in conjunction with a bridge, veth devices with random addresses
may change the mac address of the bridge itself if the mac address of the
interface newly added is numerically lower than the previous mac address
of the bridge. This is documented kernel behavior. To avoid changing the
host's mac address back and forth when starting and/or stopping containers,
this patch ensures that the high byte of the mac address of the veth
interface visible from the host side is set to 0xfe.

A similar logic is also implemented in libvirt.

Fixes SF bug #3411497
See also: <http://thread.gmane.org/gmane.linux.kernel.containers.lxc.general/2709>

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
12 years agoRevert "lxc: use -iquote instead of -I"
Daniel Lezcano [Fri, 18 Nov 2011 15:09:47 +0000 (16:09 +0100)]
Revert "lxc: use -iquote instead of -I"

This reverts commit a2dea4ea209a8fcf6837668bbe59f350931d1c07.

12 years agoUbuntu template: some tweaks
Stéphane Graber [Thu, 10 Nov 2011 08:45:52 +0000 (09:45 +0100)]
Ubuntu template: some tweaks

Allow mknod (fixing udev upgrades) and drop mac_override and mac_admin
from lxc.cap.drop as apparmor has/will have support for namespaces

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc: use -iquote instead of -I
Greg Kurz [Thu, 10 Nov 2011 08:41:46 +0000 (09:41 +0100)]
lxc: use -iquote instead of -I

To avoid name collisions between local and system header
files. For example, if you try to include the <pty.h>
system file, you end up including the one from lxc...

Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc: fix erroneous includes
Greg Kurz [Thu, 10 Nov 2011 08:41:46 +0000 (09:41 +0100)]
lxc: fix erroneous includes

The "" notation is preferrable if the header file is local.

Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoadd lxc-archlinux template
Alexander Vladimirov [Thu, 10 Nov 2011 08:41:46 +0000 (09:41 +0100)]
add lxc-archlinux template

Hi, here's the patch which adds Arch linux container template

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agofix lxc-destroy
Daniel Lezcano [Thu, 10 Nov 2011 08:41:46 +0000 (09:41 +0100)]
fix lxc-destroy

Add missing 'localstatedir' directory definition.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-fedora.in: Fix fetching of the fedora-release rpm
Tuomas Suutari [Fri, 28 Oct 2011 21:55:38 +0000 (23:55 +0200)]
lxc-fedora.in: Fix fetching of the fedora-release rpm

The hardcoded URL seems to be broken and 404 error was not
checked. Now the mirror is selected from mirrorlist (instead of
hardcoding to funet.fi) and fetch errors are checked.

Also added a retry loop (with 3 tries) to find a working mirror, since
some of the mirrors are not OK.

Signed-off-by: Tuomas Suutari <tuomas.suutari@gmail.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-fedora.in: Use i386 instead of i686
Tuomas Suutari [Fri, 28 Oct 2011 21:55:38 +0000 (23:55 +0200)]
lxc-fedora.in: Use i386 instead of i686

There is no i686 variant of Fedora, but Ubuntu seems to return i686
from the arch command.

Signed-off-by: Tuomas Suutari <tuomas.suutari@gmail.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-fedora.in: Add missing default release variable
Tuomas Suutari [Fri, 28 Oct 2011 21:55:38 +0000 (23:55 +0200)]
lxc-fedora.in: Add missing default release variable

The text says that 14 is default, but release=14 was not set anywhere
in the script.

Signed-off-by: Tuomas Suutari <tuomas.suutari@gmail.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agotemplates: update openSUSE template for openSUSE 12.1
Frederic Crozat [Tue, 25 Oct 2011 09:25:18 +0000 (11:25 +0200)]
templates: update openSUSE template for openSUSE 12.1

rely on "build" package, to ensure chroot can be created with
distribution older than 12.1

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoDrop resolvconf from oneiric container package list
Serge E. Hallyn [Mon, 24 Oct 2011 22:02:33 +0000 (00:02 +0200)]
Drop resolvconf from oneiric container package list

It prevents containers from getting a good resolv.conf without doing
ifdown eth0; ifup eth0.

(see pad.lv/880020)

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoextend the struct lxc_arguments
Cedric Le Goater [Mon, 24 Oct 2011 12:56:30 +0000 (14:56 +0200)]
extend the struct lxc_arguments

This patch adds a private argument to extend the struct
lxc_arguments. This is useful to develop custom lxc commands
outside mainline lxc.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc: introduce lxc_execute()
Greg Kurz [Mon, 24 Oct 2011 12:56:30 +0000 (14:56 +0200)]
lxc: introduce lxc_execute()

This patch allows to create application containers with liblxc.so directly.

Some code cleanups on the way:
- separate ops for lxc_execute() and lxc_start(): the factorisation is wrong
  here as we may have specific things to do if we're running an application
  container. It deserves separate ops.
- lxc_arguments_dup() is merged in the pre-exec operation: this is a first
  use for the execute op introduced just above. It's better to build the
  arguments to execvp() where they're really used.

Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
12 years agohandle kernel 3.x in lxc-checkconfig
Frederic Crozat [Thu, 13 Oct 2011 09:26:56 +0000 (11:26 +0200)]
handle kernel 3.x in lxc-checkconfig

Make sure to correctly detect kernel 3.x for file capabilities.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoalt linux template
Alexey Shabalin [Mon, 24 Oct 2011 12:55:13 +0000 (14:55 +0200)]
alt linux template

Updates.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
--

12 years agolxc-ubuntu: stop early if a bad user is specified in -b option
Serge E. Hallyn [Mon, 24 Oct 2011 12:47:58 +0000 (14:47 +0200)]
lxc-ubuntu: stop early if a bad user is specified in -b option

Otherwise we end up with a bad container fstab and a container
that won't boot.  See
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/879052

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoDon't list containers w/ active console sessions multiple times
Rainer Weikusat [Mon, 24 Oct 2011 12:47:58 +0000 (14:47 +0200)]
Don't list containers w/ active console sessions multiple times

The lxc-ls shell script uses netstat -xa to get a listing of AF_UNIX
sockets it then parses in order to determine the names of presently
running containers. This is wrong because it will list the
listening socket and all sockets created by accepting connections on
that. This causes the script to display the names of containers with
active lxc-console sessions 1 + n times, n being the number of active
console sessions. The patch below fixes this by using netstat -xl
instead which only displays the listening sockets.

Signed-off-by: Rainer Weikusat <rweikusat@mobileactivedefense.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoubuntu template: allow containers to create tap devices
Serge E. Hallyn [Mon, 24 Oct 2011 12:38:30 +0000 (14:38 +0200)]
ubuntu template: allow containers to create tap devices

Thought I had sent this before, but I don't find it anywhere.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoAccurately detect whether a system supports clone_children
Serge E. Hallyn [Mon, 24 Oct 2011 12:38:30 +0000 (14:38 +0200)]
Accurately detect whether a system supports clone_children

If multiple cgroups are mounted under /sys/fs/cgroup, then the
original check ends up looking for /sys/fs/cgroup/cgroup.clone_children,
which does not exist because that is just a tmpfs.

So make sure to check an actual cgroupfs.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoLet sshd template work on ubuntu systems.
Serge E. Hallyn [Mon, 24 Oct 2011 12:38:30 +0000 (14:38 +0200)]
Let sshd template work on ubuntu systems.

/dev/shm is a symlink to /run/shm, so we need /run/shm
to exist in the container rootfs.  Also, /dev/mqueue does
not exist on the host, and can't be created by the container.
But we don't really need it so ignore that.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoubuntu template: disallow cap_sys_module (by popular demand)
Serge E. Hallyn [Mon, 24 Oct 2011 12:38:30 +0000 (14:38 +0200)]
ubuntu template: disallow cap_sys_module (by popular demand)

This isn't particularly reassuring, and will be moot with user
namespaces, but as people are asking for it, turn off sys_module.
While we're at it, turn off mac_admin and mac_override.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-clone: fix dhclient.conf send hostname command
Serge E. Hallyn [Mon, 24 Oct 2011 12:38:30 +0000 (14:38 +0200)]
lxc-clone: fix dhclient.conf send hostname command

End the command with ';', which is needed, and put the hostname in
quotes (which doesn't really seem needed, but shown in man page).

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agofix more broken paths in lxc-*.in scripts
Greg Kurz [Mon, 24 Oct 2011 12:38:30 +0000 (14:38 +0200)]
fix more broken paths in lxc-*.in scripts

There are still some sequels from commit:

1c41ddcb4af633ac906f1d7c9ef1dc7d121d7850

Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agofix broken lxc-*.in scripts
Greg Kurz [Tue, 20 Sep 2011 09:18:39 +0000 (11:18 +0200)]
fix broken lxc-*.in scripts

Commit 92c7f6295518decd3989b2790d758888551e7d9a broke the following scipts:
- lxc-setcap
- lxc-setuid
- lxc-create

This patch adds the missing variables to be substitued by the configure
script.

Cheers.

Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoSet the utsname on the debian template
Tzafrir Cohen [Tue, 13 Sep 2011 13:08:04 +0000 (15:08 +0200)]
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>
12 years agoonly warn for inherited file descriptors
Greg Kurz [Tue, 13 Sep 2011 13:08:04 +0000 (15:08 +0200)]
only warn for inherited file descriptors

As discussed in thread:

http://sourceforge.net/mailarchive/forum.php?thread_name=4E5618C3.5060507%40free.fr&forum_name=lxc-devel

We think it's better for now to only warn the user about a fd leaking into
the container. Also remove the call to readlink() as it isn't really useful
now: since the container will start anyway, the user can look into /proc/../fd
or use lsof or whatever.

Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agofixes for rpmbuild
Greg Kurz [Tue, 13 Sep 2011 13:08:04 +0000 (15:08 +0200)]
fixes for rpmbuild

This patch fixes some makefile/specfile issues when running
rpmbuild with the distributed lxc specfile:

- fixes usage of installation directories for config files,
  rootfs, templates and lxc-init so that they're calculated
  at make time instead of configure time. Thanks to this,
  all installed items go under $RPM_BUILD_ROOT when running
  rpmbuild
- introduce --disable-rpath option to configure to avoid
  check-rpaths errors when building non-root.
- introduce a lxc-libs package in the default spec file
  to allow concurrent installation of 32 bit and 64 bit
  libraries.

v2: - fix circular reference in lxc.pc
    - ship lxc.pc with lxc-devel

Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoremove the check for container path as it's done in lxc-create
InformatiQ [Thu, 1 Sep 2011 20:24:30 +0000 (22:24 +0200)]
remove the check for container path as it's done in lxc-create

Signed-off-by: InformatiQ <rhanna@informatiq.org>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoif after freezing the container the snapshot/rsync fails, unfreeze before exiting
InformatiQ [Tue, 30 Aug 2011 22:20:09 +0000 (00:20 +0200)]
if after freezing the container the snapshot/rsync fails, unfreeze before exiting

Signed-off-by: InformatiQ <rhanna@informatiq.org>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
12 years ago*add the new opts to help() *set container_running=false
InformatiQ [Tue, 30 Aug 2011 22:20:09 +0000 (00:20 +0200)]
*add the new opts to help() *set container_running=false

Signed-off-by: InformatiQ <rhanna@informatiq.org>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
12 years ago* allow cloning of non-snapshot lvm devices
InformatiQ [Tue, 30 Aug 2011 22:20:09 +0000 (00:20 +0200)]
* allow cloning of non-snapshot lvm devices

Signed-off-by: InformatiQ <rhanna@informatiq.org>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
12 years agolxc-fedora.in
Ramez Hanna [Tue, 30 Aug 2011 22:20:09 +0000 (00:20 +0200)]
lxc-fedora.in

* if not running on fedora host amd -R is not set, use fedora 14 as default
* trap SIGHUP SIGINT SIGTERM, and cleanup before exiting

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agofix for missing EOF and fstab contents
Ramez Hanna [Tue, 30 Aug 2011 22:20:09 +0000 (00:20 +0200)]
fix for missing EOF and fstab contents

 templates/lxc-fedora.in |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoadd lxc-altlinux template
Alexey Shabalin [Tue, 16 Aug 2011 12:00:51 +0000 (16:00 +0400)]
add lxc-altlinux template

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years ago.gateway options
Matthijs Kooijman [Tue, 30 Aug 2011 21:50:23 +0000 (23:50 +0200)]
.gateway options

Man for the gateway option.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoadd autodetection of the gateway address
Matthijs Kooijman [Tue, 30 Aug 2011 21:50:23 +0000 (23:50 +0200)]
add autodetection of the gateway address

For veth and macvlan networks, this can look up the host address on the
bridge (link) interface and add a default route on the guest to that
address. This facilitates a typical setup where guests are bridged
together.

syntax:
lxc.ipv4.gateway = auto
lxc.ipv6.gateway = auto

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years ago.gateway configuration
Matthijs Kooijman [Tue, 30 Aug 2011 21:50:23 +0000 (23:50 +0200)]
.gateway configuration

This directive adds a default route to the guest at startup.

syntax:
lxc.network.ipv4.gateway = 10.0.0.1
lxc.network.ipv6.gateway = 2001:db8:85a3::8a2e:370:7334

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoDon't log an error when the container is stopped
Daniel Lezcano [Tue, 30 Aug 2011 21:50:00 +0000 (23:50 +0200)]
Don't log an error when the container is stopped

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoremove minimal install for ubuntu template
Daniel Lezcano [Fri, 12 Aug 2011 19:47:55 +0000 (21:47 +0200)]
remove minimal install for ubuntu template

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agomake undefined personality non-fatal
Daniel Lezcano [Thu, 11 Aug 2011 23:34:49 +0000 (01:34 +0200)]
make undefined personality non-fatal

Just warn, do not exit fatally.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agofix segfault when an unsupported personality is set
Daniel Lezcano [Thu, 11 Aug 2011 23:34:49 +0000 (01:34 +0200)]
fix segfault when an unsupported personality is set

Bad array len computation.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoVersion 0.7.5
Daniel Lezcano [Thu, 11 Aug 2011 17:00:13 +0000 (19:00 +0200)]
Version 0.7.5
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agofix setns parameter
Daniel Lezcano [Thu, 11 Aug 2011 16:59:44 +0000 (18:59 +0200)]
fix setns parameter

The setns syscall is now mainstream but the parameter passing changed.
Let's fix that.

The pid namespace and mount namespace attach are missing for the moment.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-ps : update the man page for passing the options
Daniel Lezcano [Thu, 11 Aug 2011 15:54:57 +0000 (17:54 +0200)]
lxc-ps : update the man page for passing the options

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-ps : fix the container name search
Daniel Lezcano [Thu, 11 Aug 2011 15:54:57 +0000 (17:54 +0200)]
lxc-ps : fix the container name search

We don't have to check for the cgroup namespace name because the
pid we are looking for is already in the list of the container owned by
lxc and retrieved from the abstract socket command name.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoadd container init pid with the lxc-info command
Daniel Lezcano [Thu, 11 Aug 2011 15:19:56 +0000 (17:19 +0200)]
add container init pid with the lxc-info command

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agofix RELEAE_URL to not hardcode the arch
InformatiQ [Wed, 13 Jul 2011 21:41:03 +0000 (00:41 +0300)]
fix RELEAE_URL to not hardcode the arch

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoworking fedora template
InformatiQ [Wed, 20 Apr 2011 20:15:51 +0000 (23:15 +0300)]
working fedora template

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-checkconfig takes into account cgroup.clone_children
Daniel Lezcano [Tue, 9 Aug 2011 18:02:31 +0000 (20:02 +0200)]
lxc-checkconfig takes into account cgroup.clone_children

Take into account we may have the clone_children flag on the cgroup,
so we ignore cgroup namespace in this case.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoSilence lxc-unshare warning when removing cgroup
Serge E. Hallyn [Tue, 9 Aug 2011 14:51:01 +0000 (16:51 +0200)]
Silence lxc-unshare warning when removing cgroup

If ns cgroup is mounted, then when lxc-unshare runs, the kernel automatically
creates a new cgroup for the task.  So lxc-unshare tries to delete it.  But
if ns cgroup is not mounted, that cgroup does not get created, and now
lxc-unshare spits an error.
Author: Serge Hallyn <serge.hallyn@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/819319
Forwarded: no

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agomake lxc-netstat work when /etc/mtab is not /proc/mounts
Serge E. Hallyn [Tue, 9 Aug 2011 14:51:01 +0000 (16:51 +0200)]
make lxc-netstat work when /etc/mtab is not /proc/mounts

like lxc-ps and lxc-ls, lxc-netstat breaks if there is not an 'lxc' cgroup
mount and /etc/mtab is not a link to /proc/mounts.
Author: Serge Hallyn <serge.hallyn@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/819319
Forwarded: no

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agofix lxc-ls with mtab != /proc/mounts
Serge E. Hallyn [Tue, 9 Aug 2011 14:51:01 +0000 (16:51 +0200)]
fix lxc-ls with mtab != /proc/mounts

The cgroup mounts created by cgroup-bin do not show up in /etc/mtab.
lxc-ls, as lxc-ps before it, assumes that /etc/mtab is symlinked to
/proc/mounts.
Author: Serge Hallyn <serge.hallyn@canonical.com>
Forwarded: no
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/819319

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-ps: support '-n name' and '-- ps-options'
Serge E. Hallyn [Tue, 9 Aug 2011 14:51:01 +0000 (16:51 +0200)]
lxc-ps: support '-n name' and '-- ps-options'

This is more consistent with other lxc commands

Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/820720

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoexplicitly do not use the console
Daniel Lezcano [Tue, 9 Aug 2011 14:51:01 +0000 (16:51 +0200)]
explicitly do not use the console

If the keyword 'none' is specified for the console name, lxc will ignore creating a console.
That allows to have a rootfs but without a console.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoUse container's /run/utmp if it exists
Serge E. Hallyn [Sun, 7 Aug 2011 10:25:07 +0000 (12:25 +0200)]
Use container's /run/utmp if it exists

If /var/run is a symlink to /run in the container, then opening
/proc/<pid>/root/var/run/utmp will end up opening the host's utmp.
Therefore the hack detecting shutdown through utmp fails.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoadd ubuntu-keyring to the packagelist for oneiric containers.
Serge E. Hallyn [Sun, 7 Aug 2011 10:25:07 +0000 (12:25 +0200)]
add ubuntu-keyring to the packagelist for oneiric containers.

Otherwise apt fails during and after debootstrap.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoDon't try to add host user's groups in container
Serge E. Hallyn [Wed, 27 Jul 2011 14:34:58 +0000 (16:34 +0200)]
Don't try to add host user's groups in container

When '-b user' is specified to lxc-ubuntu container creation template, do
not automatically add all the groups of which user is a member on the host,
to user's groups in the container.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-ubuntu: Allow /dev/fuse to be used in a container
Serge Hallyn [Sun, 24 Jul 2011 22:22:50 +0000 (00:22 +0200)]
lxc-ubuntu: Allow /dev/fuse to be used in a container

As people seem to want it, i.e.
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/800886

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agolxc-ubuntu: don't put devpts in $confdir/container/fstab
Serge Hallyn [Sun, 24 Jul 2011 22:22:50 +0000 (00:22 +0200)]
lxc-ubuntu: 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.

Note - I messed up.  This was applied upstream, but I dropped it in
subsequent conversion to lxc-ubuntu template.  It therefore needs to
be reapplied.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
12 years agoAdd arm as a supported srcarch
Serge Hallyn [Sun, 24 Jul 2011 22:22:50 +0000 (00:22 +0200)]
Add arm as a supported srcarch

Otherwise building on armel fails with

checking for linux SRCARCH... configure: error: architecture arm-unknown-linux-gnueabi not supported

See https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/745884 for details.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>