History log of /lxc/templates/lxc-busybox.in
Revision Date Author Comments Expand
ff7a7fdc31f43272c36b1cfbff5b6613f4198e17 25-Mar-2017 Evgeni Golov <evgeni@debian.org>

do not set insecure passwords Signed-off-by: Evgeni Golov <evgeni@debian.org>

07e4c41f2963d73b9aedd552c74f17a33e89f020 24-Mar-2016 Bogdan Purcareata <bogdan.purcareata@nxp.com>

lxc-busybox: Remove warning for dynamically linked Busybox The warning has been present since commit 32b37181ea (with no purpose stated). Support for dynamically linked Busybox has been added since commit bf6cc73696. Haven't encountered any issues with dynamically linked Busybox in my last 2 years' testing. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

6ab1ca0375feeb00070f0c0f9186551b08b1ee5e 24-Mar-2016 Bogdan Purcareata <bogdan.purcareata@nxp.com>

lxc-busybox: Touch /etc/fstab in the container rootfs Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>

88e3899351cf9bef7b1285ed96c525cbadc0a420 26-May-2015 Bogdan Purcareata <bogdan.purcareata@freescale.com>

lxc-busybox: Prevent copying binaries from /usr/local to container On certain systems, some binaries needed by the container features (dropbear, openssh), may be placed in non-standard (aka non-distribution-managed locations), such as /usr/local/*, /opt/local/*, etc. Don't copy the respective binaries in the container and return a clear error why. The user should only use these binaries if they are installed at system-wide locations on the host, such as /{s,}bin or /usr/{s,}bin. v2: - check that binary paths adhere to /{,usr/}{,s}bin only Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

4432b512a280be289d0797bdbcc0a40fcb2635ce 26-May-2015 Bogdan Purcareata <bogdan.purcareata@freescale.com>

lxc-busybox: make some OpenSSH tools optional Currently, when installing OpenSSH in a Busybox container, the template searches for all the OpenSSH client binaries available in the Debian distro package. The included tools might differ from distro to distro, so make part of the tools optional. The mandatory tools, without which installing OpenSSH fails, are "sshd" for the server and "ssh" and "scp" for the client. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

ed52814c776963efdcc9dcda1ec26fc09930ef93 22-Apr-2015 Bogdan Purcareata <bogdan.purcareata@freescale.com>

lxc-busybox: add OpenSSH support Add an additional template parameter for SSH support in the container. Currently this can be implemented using the Dropbear or OpenSSH utility. The respective tool needs to be available on the host Linux. If the parameter is omitted, the template will look for the Dropbear utility on the host and install it if it is available (legacy behavior). Adding OpenSSH support has been done following the model in the lxc-sshd template. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

22fb28a946397ec19b247efe170c15b263bf89af 18-Feb-2015 Bogdan Purcareata <bogdan.purcareata@freescale.com>

lxc-busybox: use lxc.rebootsignal = SIGTERM Otherwise lxc-stop -r has no effect on the container. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Acked-by: Serge E. Hallyn <serge.hallyn@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>

cfe615f031f0ea48d6f725f72c8109573828d0f6 27-Jan-2015 Serge Hallyn <serge.hallyn@ubuntu.com>

fix busybox unpriv 1. tty5 is not needed 2. the devices should be optional in case they didn't exist in the host / parent-container 3. switch from 'touch $rootfs/dev/$dev' to using create=file in the mount entry. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

12c3b43fbeacd9cc471adf565ecea3263e37e353 22-Oct-2014 Bogdan Purcareata <bogdan.purcareata@freescale.com>

busybox template: mount fstab when available When running unprivileged, lxc-create will touch a fstab file, with bind-mounts for the ttys and other devices. Add this entry in the container config. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

a542dd3c1aca8b6674f631d625d888eb13ae3a4d 22-Oct-2014 Bogdan Purcareata <bogdan.purcareata@freescale.com>

busybox template: support for unprivileged containers Apply the changes found in templates/lxc-download to the busybox template as well. Change ownership of the config and fstab files to the unprivileged user, and the ownership of the rootfs to root in the new user namespace. Eliminate the "unsupported for userns" flag. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

50dbb8209bf65e4d24ccd06d3ca05004d0ddc63c 24-Mar-2014 Bogdan Purcareata <bogdan.purcareata@freescale.com>

lxc-busybox: follow symlinks when inspecting busybox binary Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Serge 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>

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>

f0f1d8c076ae93d8ecf735c2eeae471e27ca6abd 06-Jan-2014 Dwight Engen <dwight.engen@oracle.com>

add lxc.haltsignal for soft shutdown - use this in the busybox template since busybox's init expects to receive SIGUSR1 to halt - fix lxc.stopsignal to be output by write_config so lxcapi_clone() and lxcapi_save_config() will output it Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

7f1dea04a4045539fa92a7f7cbdbb0d091d6a4d2 09-Dec-2013 Bogdan Purcareata <bogdan.purcareata@freescale.com>

lxc-busybox: make securityfs bind-mount optional Prevent container start from failing when running Busybox containers on hosts without securityfs support. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

fbbc15397af76b573f52bb9c8d34a76a344d9ad1 06-Dec-2013 Dwight Engen <dwight.engen@oracle.com>

busybox template: set mode when creating device nodes Ensure mode 666 is set for tty1 and tty5 Signed-off-by: Dwight Engen <dwight.engen@oracle.com> 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>

9e214906db8b351be775901dc4e8fc070bfacf1b 24-Oct-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

lxc-busybox: if in userns, don't try to mknod Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

7a409fd5167ecdcbf33a64f1cf9202dc051f0dcf 22-Oct-2013 Serge Hallyn <serge.hallyn@ubuntu.com>

lxc-busybox: don't copy temp mounts into mtab Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

fefddf9f9f52616972a5b25549c250fd9f709ab4 17-Oct-2013 Dwight Engen <dwight.engen@oracle.com>

fix busybox template for use with AppArmor Ensure /proc and /sys are mounted in the container, otherwise apparmor_enabled() will fail to find /sys/module/apparmor/parameters/enabled Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Signed-off-by: Serge Hallyn <serge.hallyn@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>

/lxc/autogen.sh /lxc/doc/common_options.sgml.in /lxc/doc/legacy/lxc-ls.sgml.in /lxc/doc/lxc-attach.sgml.in /lxc/doc/lxc-cgroup.sgml.in /lxc/doc/lxc-checkconfig.sgml.in /lxc/doc/lxc-checkpoint.sgml.in /lxc/doc/lxc-clone.sgml.in /lxc/doc/lxc-console.sgml.in /lxc/doc/lxc-create.sgml.in /lxc/doc/lxc-destroy.sgml.in /lxc/doc/lxc-device.sgml.in /lxc/doc/lxc-execute.sgml.in /lxc/doc/lxc-freeze.sgml.in /lxc/doc/lxc-info.sgml.in /lxc/doc/lxc-kill.sgml.in /lxc/doc/lxc-ls.sgml.in /lxc/doc/lxc-monitor.sgml.in /lxc/doc/lxc-netstat.sgml.in /lxc/doc/lxc-ps.sgml.in /lxc/doc/lxc-restart.sgml.in /lxc/doc/lxc-start-ephemeral.sgml.in /lxc/doc/lxc-start.sgml.in /lxc/doc/lxc-stop.sgml.in /lxc/doc/lxc-top.sgml.in /lxc/doc/lxc-unfreeze.sgml.in /lxc/doc/lxc-unshare.sgml.in /lxc/doc/lxc-version.sgml.in /lxc/doc/lxc-wait.sgml.in /lxc/doc/lxc.conf.sgml.in /lxc/doc/lxc.sgml.in /lxc/doc/see_also.sgml.in /lxc/hooks/mountcgroups /lxc/hooks/mountecryptfsroot /lxc/lxc.spec.in /lxc/runapitests.sh /lxc/src/include/getline.c /lxc/src/include/getline.h /lxc/src/include/lxcmntent.c /lxc/src/include/lxcmntent.h /lxc/src/include/openpty.c /lxc/src/include/openpty.h /lxc/src/lxc/af_unix.c /lxc/src/lxc/af_unix.h /lxc/src/lxc/apparmor.c /lxc/src/lxc/apparmor.h /lxc/src/lxc/arguments.c /lxc/src/lxc/arguments.h /lxc/src/lxc/attach.c /lxc/src/lxc/attach.h /lxc/src/lxc/attach_options.h /lxc/src/lxc/bdev.c /lxc/src/lxc/bdev.h /lxc/src/lxc/caps.c /lxc/src/lxc/caps.h /lxc/src/lxc/cgroup.c /lxc/src/lxc/cgroup.h /lxc/src/lxc/checkpoint.c /lxc/src/lxc/commands.c /lxc/src/lxc/commands.h /lxc/src/lxc/conf.c /lxc/src/lxc/conf.h /lxc/src/lxc/confile.c /lxc/src/lxc/confile.h /lxc/src/lxc/console.c /lxc/src/lxc/console.h /lxc/src/lxc/error.c /lxc/src/lxc/error.h /lxc/src/lxc/execute.c /lxc/src/lxc/freezer.c /lxc/src/lxc/genl.c /lxc/src/lxc/genl.h /lxc/src/lxc/legacy/lxc-ls.in /lxc/src/lxc/list.c /lxc/src/lxc/list.h /lxc/src/lxc/log.c /lxc/src/lxc/log.h /lxc/src/lxc/lxc-destroy.in /lxc/src/lxc/lxc-device /lxc/src/lxc/lxc-ls /lxc/src/lxc/lxc-netstat.in /lxc/src/lxc/lxc-ps.in /lxc/src/lxc/lxc-start-ephemeral.in /lxc/src/lxc/lxc.functions.in /lxc/src/lxc/lxc.h /lxc/src/lxc/lxc_attach.c /lxc/src/lxc/lxc_cgroup.c /lxc/src/lxc/lxc_checkpoint.c /lxc/src/lxc/lxc_config.c /lxc/src/lxc/lxc_console.c /lxc/src/lxc/lxc_execute.c /lxc/src/lxc/lxc_freeze.c /lxc/src/lxc/lxc_info.c /lxc/src/lxc/lxc_init.c /lxc/src/lxc/lxc_kill.c /lxc/src/lxc/lxc_monitor.c /lxc/src/lxc/lxc_monitord.c /lxc/src/lxc/lxc_restart.c /lxc/src/lxc/lxc_start.c /lxc/src/lxc/lxc_stop.c /lxc/src/lxc/lxc_unfreeze.c /lxc/src/lxc/lxc_unshare.c /lxc/src/lxc/lxc_usernsexec.c /lxc/src/lxc/lxc_wait.c /lxc/src/lxc/lxccontainer.h /lxc/src/lxc/lxcseccomp.h /lxc/src/lxc/lxcutmp.c /lxc/src/lxc/lxcutmp.h /lxc/src/lxc/mainloop.c /lxc/src/lxc/mainloop.h /lxc/src/lxc/monitor.c /lxc/src/lxc/monitor.h /lxc/src/lxc/namespace.c /lxc/src/lxc/namespace.h /lxc/src/lxc/network.c /lxc/src/lxc/network.h /lxc/src/lxc/nl.c /lxc/src/lxc/nl.h /lxc/src/lxc/parse.c /lxc/src/lxc/parse.h /lxc/src/lxc/restart.c /lxc/src/lxc/rtnl.c /lxc/src/lxc/rtnl.h /lxc/src/lxc/seccomp.c /lxc/src/lxc/start.c /lxc/src/lxc/start.h /lxc/src/lxc/state.c /lxc/src/lxc/state.h /lxc/src/lxc/sync.c /lxc/src/lxc/sync.h /lxc/src/lxc/utils.c /lxc/src/lxc/utils.h /lxc/src/lxc/version.c /lxc/src/lxc/version.h /lxc/src/python-lxc/examples/api_test.py /lxc/src/python-lxc/examples/pyconsole-vte.py /lxc/src/python-lxc/examples/pyconsole.py /lxc/src/python-lxc/lxc.c /lxc/src/python-lxc/lxc/__init__.py /lxc/src/python-lxc/setup.py /lxc/src/tests/lxc-test-usernic lxc-altlinux.in lxc-archlinux.in lxc-busybox.in lxc-debian.in lxc-fedora.in lxc-opensuse.in lxc-oracle.in lxc-sshd.in
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>

794fb287b3bd7a6c07f99ec1565c517922287065 15-May-2013 Bogdan Purcareata <bogdan.purcareata@freescale.com>

lxc-busybox: check when bind-mounting host libdirs The patch removes the behavior of automatically mounting /lib and /usr/lib, since this is duplicated a few lines below. It will also remove the risk of failing when one of these entries are not present on the host - e.g. on a 64bit machine. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> 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>

ce4c4ca43586825a13c1abb4ce13e90d9447a0eb 16-Apr-2013 Bogdan Purcareata <bogdan.purcareata@freescale.com>

lxc-template: enable chroot + chpasswd functionality for Busybox hosts This patch supports the scenario where a user wants to install a busybox container on a busybox host. When running the template, in order to change the root password, the template needs to do the chroot. On busybox-powered hosts, chroot is not part of the coreutils package - it's part of busybox. And the busybox implementation or chroot only works if it has /lib in the new root populated with the right binaries (or at least that's the solution I found to make it work). The temporarily bind-mounts /lib in the NEWROOT, chroots there, changes the password, goes back and unmounts. This set of operations is contained in a new MOUNT namespace, using the lxc-unshare call. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

169bf5e07ed044a11fe6f5dd683615bee001ee36 22-Jan-2013 Dwight Engen <dwight.engen@oracle.com>

use which instead of type This is for consistency with the rest of lxc, and also because type checks for shell builtins, a behavior that we do not want in these cases. Ensure stderr for which is redirected to /dev/null also. Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

c94e60d16bfcda262ac907bf9667abdc46c07fa8 15-Jan-2013 Purcareata Bogdan-B43198 <B43198@freescale.com>

Add Dropbear SSH support for lxc-busybox template Dropbear implements lightweight SSH2 server and client functionality and is likely to be included in embedded Linux distros. Signed-off-by: Purcareata Bogdan <B43198@freescale.com> Acked-by: Stéphane Graber <stgraber@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>

6902a6c6642a85c0510e84e96a06e21aee152226 03-Dec-2012 Dwight Engen <dwight.engen@oracle.com>

Create busybox commands as symlinks instead of hardlinks I was getting a "Too many links" error when creating a busybox container on a btrfs file system. This change has the template create the links as symlinks instead. It also generates the list of commands to be symlinked from busybox itself instead of a hardcoded list in the template. Also set the root password to root, to match what other templates do. Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

e62fa3f9cea8c97fbfa3a3c8e6acc00c420c8363 29-Nov-2012 Dwight Engen <dwight.engen@oracle.com>

Fix busybox template to not have extra aa_profile hunk Both 69d66f1e and f02ce27d added the aa_profile = unconfined hunk, but only the first was needed, maybe a merge error? The second one causes the template to get an error on the EOF line. This essentially reverts f02ce27d. Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

69d66f1e729aadfcf2f47aaedaf738a888e4646d 12-Nov-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>

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>

5d01f6167c2354637e777650558be6d7d69e2579 25-Oct-2012 Stéphane Graber <stgraber@ubuntu.com>

lxc-busybox: Use relative mounts in lxc.mount.entry To make it easier to clone/rename the container, replace hardcoded entries (with rootfs in the destination path) by rootfs-relative entries. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

6bc424b5c7c8130ffdb6390eae53b32370a755f8 25-Oct-2012 Stuart Yoder <stuart.yoder@freescale.com>

busybox: for all lib dirs create mounts only if directories exist Signed-off-by: Stuart Yoder <stuart.yoder@freescale.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>

3d5a9debb5b7f0efac7b5d1f14700de0c8cac488 31-Jul-2012 Serge Hallyn <serge.hallyn@ubuntu.com>

lxc-busybox.in: check separately that /usr/lib64 exists It's possible for only one of /lib64 and /usr/lib64 to exist, so adding both fstab entries can cause the busybox container to fail to start. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

b09ecaf30367648a246d2e01c3a288a7653cc613 28-Jan-2011 Daniel Lezcano <daniel.lezcano@free.fr>

Fix paths in the lxc-busybox template Author of the patch : Jonathan Liu <???> posted as a bug fix on the lxc sourceforge website. OS: Arch Linux 32-bit /etc/init.d/rcS do not use full path to syslogd, mount and udhcpc executables. As busybox requires /proc mounted if CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe" to run these commands without full path, the full path should be used in the startup script as /proc is mounted later in the script. It also fails to start the machine if /lib64 does not exist on the host system as there is a mount entry for /lib64 in the config. The attached patch changes commands in /etc/init.d/rcS to use full path and adds a check for /lib64 on host before adding lib64 mount entries to config. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>

0016af974df9f47a3f15a9b57e4d223451d0547c 13-Jan-2011 Daniel Lezcano <daniel.lezcano@free.fr>

fix busybox inittab template The inittab file format is wrong regarding how behaves busybox with this syntax. 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>