- 14 Jan, 2011 1 commit
-
-
Daniel Lezcano authored
Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 13 Jan, 2011 7 commits
-
-
Daniel Lezcano authored
This line is at the wrong place ... Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Missed to add lxc-lenny to the template. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
The inittab file format is wrong regarding how behaves busybox with this syntax. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Change the mount point in the rootfs because we mount the rootfs in ROOTFSDIR for the pivot. We have to substitute the real mount path to the new path located in ROOTFSDIR. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Change the code to encapsulate the different mounts point. * mount on the host fs * mount relatively to the rootfs * mount absolutely to the rootfs (broken) That will make the code cleaner to fix the latter. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Set the function prototype to static as it is not exported and used somewhere else in the code than this file. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 10 Jan, 2011 1 commit
-
-
Daniel Lezcano authored
Fix the name of the directory to remove. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 09 Jan, 2011 1 commit
-
-
Daniel Lezcano authored
The following patch fixes the bug where the clone_children compatibility flag is available with the ns_cgroup subsystem. The 2.6.37 kernel version should be the only one which is concerned by this modification, please refer to Documentation/feature-removal-schedule.txt and look for ns_cgroup. The problem is coming from we check for clone_children and we set it automatically and then we try to create a new cgroup. As the ns_cgroup is present the cgroup already exists and we are not allowed to attach our pid to a new cgroup. The next error will be when we try to create a new container because we enabled the clone_children flag and the ns_cgroup is present, it is not allowed by the kernel. The patch fix this by checking the mount options. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 28 Dec, 2010 7 commits
-
-
Daniel Baumann authored
Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Baumann authored
Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Baumann authored
Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Baumann authored
Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Baumann authored
Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Baumann authored
Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Duplicate the lxc-debian template to use it as a fine grained template. Subject: Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 17 Dec, 2010 7 commits
-
-
Daniel Lezcano authored
If the ns_cgroup does not exist, we use the clone_children feature. Everytime a cgroup is created, we set this compatibility flag and we create the cgroup manually and add the child task to the cgroup. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
For both the ns_cgroup and the usual cgroup creation, we have to check if a previous does not exist and remove it if it is empty. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Create a single API to create a cgroup which will switch to the old ns_cgroup automatically. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Prepare the nscgroup to be converted to the clone_children changes. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
This field is unused. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michael Tokarev authored
Why not chdir into the root of container right when the root filesystem is (bind-)mounted, and let all mount entries to be relative to the container root? Even more, to warn if lxc.mount[.entry] contains absolute path for the destination directory (or a variation of this, absolute and does not start with container root mount point)? This way, all mounts will look much more sane, and it will be much easier to move/clone containers - by changing only lxc.rootfs. I do it this way locally since the beginning, by chdir'ing to the proper directory (rootfs) before running lxc-start (in a startup script), but this is now broken in 0.7.3 which bind-mounts rootfs somewhere in /usr/lib/lxc. Signed-off-by: Michael Tokarev<mjt@tls.msk.ru> Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 30 Oct, 2010 1 commit
-
-
Sergey S. Kostyliov authored
Add support for `dirsync' mount option. MS_DIRSYNC is on of the mount(2) mountflags so don't send it as extra mount option to avoid: lxc-start: Invalid argument - failed to mount ... errors. Signed-off-by:
Sergey S. Kostyliov <rathamahata@gmail.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 26 Oct, 2010 4 commits
-
-
Daniel Lezcano authored
Version 0.7.3 Signed-off-by:Daniel Lezcano <daniel.lezcano@free.fr>
-
Daniel Lezcano authored
Update the man page wrt the hook script added for the host side network configuration. Signed-off-by:Daniel Lezcano <daniel.lezcano@free.fr>
-
Daniel Lezcano authored
Don't close the socket when we ask for a console, otherwise this will make the console slot to be freed, so the next console will use the same slot leading to an erratic behavior. Signed-off-by:Daniel Lezcano <daniel.lezcano@free.fr>
-
Daniel Lezcano authored
We don't want to drop the capabilities when we are root because that leads to some problems. For exemple, sudo lxc-start -n foo -o $(tty) fails with "permission denied". Signed-off-by:Daniel Lezcano <daniel.lezcano@free.fr>
-
- 12 Oct, 2010 6 commits
-
-
Daniel Lezcano authored
The capability header makes the inclusion of the loop header to fail. Moving the inclusion of loop.h before capability.h fixes the problem. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Fix some compilation warnings: * include caps.h in lxc_checkpoint and lxc_restart * check the return of the timer notification read Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Cosmetic change by reducing the function names. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Change the run_script function to use popen and to redirect the output of the script to the log file. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Fix the coding style, 80 chars lines, etc ... Fix indentation blocks if ... then ... else ... fi Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Stefan Tomanek authored
This commit adds an configuration option to specify a script to be executed after creating and configuring the network used by the container. The following arguments are passed to the script: * container name * config section name (net) Additional arguments depend on the config section employing a script hook; the following are used by the network system: * execution context (up) * network type (empty/veth/macvlan/phys) Depending on the network type, other arguments may be passed: veth/macvlan/phys: * (host-sided) device name Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 05 Oct, 2010 1 commit
-
-
Daniel Lezcano authored
Update the man page regarding the image or block device supported as a rootfs. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 03 Oct, 2010 4 commits
-
-
Daniel Lezcano authored
This patch allows to specify an image or a block device. The image or the block device is mounted on rootfs->mount. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
In the case we use an image for rootfs, if we need to do extra mount from the host to the rootfs, we have to specify the place where the image is mounted. This value is configured by the user with the lxc.rootfs.mount otherwise defaulting to @LXCROOTFSMOUNT@. Let's export this variable to pkg-config, so the user can use it to build a correct path to the rootfs. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Don't display an error when the callback returns an error different from zero. A value greater than zero may means "stop". Let's the caller to check the error. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
The <rootfs>/var/run/utmp is located in: /proc/<containerinit>/root/var/run/utmp, let's use it. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-