- 11 Nov, 2012 2 commits
-
-
Daniel Lezcano authored
Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 31 Oct, 2012 6 commits
-
-
Daniel Lezcano authored
Signed-off-by:
Tomas Pospisek <tpo_deb@sourcepole.ch> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Dwight Engen authored
Commit 21e487f2 introduced the use of getopt, but getopt will fail when it sees arguments meant for netstat that are not in [short|long]options. There should not be any ambiguity about arguments with the same letter: those to the left of the -- are destined for lxc-netstat and those to the right for the real netstat, which the original code handles by shifting out all arguments it recognizes before the -- is hit. Signed-off-by:
Dwight Engen <dwight.engen@oracle.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Dwight Engen authored
lxc-ps is supposed to pass arguments after the -- on to ps. The problem is that i is expanded once from $@ and the loop will iterate over all the arguments that were in $@ at the time of expansion. Inside the loop, there are shifts (in the name case for example) that are trying to remove more than a single argument. This changes fixes that and makes lxc-ps work as documented. Signed-off-by:
Dwight Engen <dwight.engen@oracle.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Dwight Engen authored
Change 910bb4fa obviated the need for the --with-linuxdir configure option which means that the ksrc rpm macro no longer makes sense either. Signed-off-by:
Dwight Engen <dwight.engen@oracle.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Dwight Engen authored
Note that an additional Release field is not necessary for the devel package as it will follow the primary Release field. For more information on the dist tag, see http://fedoraproject.org/wiki/Packaging:DistTagSigned-off-by:
Dwight Engen <dwight.engen@oracle.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
https://github.com/lxc/lxcDaniel Lezcano authored
* 'upstream-bugfix' of https://github.com/lxc/lxc: (47 commits) replace HOOK define with proper code. Remove lxc-start-ephemeral from configure.ac revert devtmpfs in ubuntu templates lxc-ubuntu{-cloud}: Fix missing "fi" in new devtmpfs code fix "make rpm" display warning when yum missing in fedora template templates: mount devtmpfs in ubuntu containers handle clone of btrfs snapshots if the rootfs is a btrfs subvolume, delete it instead of rm -rf lxc-debian: replace isc-dhcp-server by isc-dhcp-client lxc-ls: Scan cgroup mount points from fstype and not device Allow short -h and -n options to lxc-ps lxc-ubuntu: fix printing of default user lxc-debian: specify isc-dhcp-server in package list try to better handle out of date container caches. link /dev/kmsg to /dev/console in the container lxc-clone: fix the '--name' parameter lxc-ls: Use readlink on $directory lxc-busybox: Use relative mounts in lxc.mount.entry busybox: for all lib dirs create mounts only if directories exist ... Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 25 Oct, 2012 32 commits
-
-
Serge Hallyn authored
Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Stéphane Graber authored
lxc-start-ephemeral.in ended up in configure.ac as a result of the cherry-pick. This new tool hasn't been pulled in yet. Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Serge Hallyn authored
devtmpfs is shared between host and containers, and it messes up lucid containers too. Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Stéphane Graber authored
The "if" statement to add devtmpfs was missing a matching "fi" causing parsing error when using the template. Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Dwight Engen authored
RPM doesn't like "-" in the version number and gives: "error: line 24: Illegal char '-' in: Version: 0.8.0-rc2" Other packages (bind-utils for example) have used . instead of - as a seperator. Signed-off-by:
Dwight Engen <dwight.engen@oracle.com> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Dwight Engen authored
This early exit is preventing the warning message that follows it from being shown. Signed-off-by:Dwight Engen <dwight.engen@oracle.com>
-
Serge Hallyn authored
That way /dev/disk/ exists, and update-grub can succeed. Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1060404
-
Dwight Engen authored
Fix determination of $oldroot from the config file. The old code had the ' in the wrong place and didn't account for whitespace between the = and the rootfs. Set $rootfs based on $oldroot instead of forcing it to be in $lxc_path/$lxc_new/rootfs. This allows for btrfs snapshot to be made even if $lxc_path isn't on the same filesystem. If $oldroot isn't a subvolume, fall back to making a copy. Signed-off-by:Dwight Engen <dwight.engen@oracle.com>
-
Dwight Engen authored
Check if the rootfs is btrfs subvolume, and if so delete it. Otherwise fall back to the rm -rf. Signed-off-by:Dwight Engen <dwight.engen@oracle.com>
-
Stéphane Graber authored
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>
-
Christian Seiler authored
lxc-ls --active now scans mount points that have the 'cgroup' filesystem type and not the 'cgroup' device name (which is ignored anyway and may be anything). Signed-off-by:Christian Seiler <christian@iwakd.de> Cc: Serge Hallyn <serge.hallyn@ubuntu.com>
-
Dwight Engen authored
Signed-off-by:Dwight Engen <dwight.engen@oracle.com>
-
Serge Hallyn authored
If a user is bound into the container, don't claim the default user is ubuntu. Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1052315Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
dhcp3-client does not exist in testing. Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1052972Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
For a lucid container, apt-get update before installing the source package for add-apt-repository, so that apt-get does not fail. If apt-get dist-upgrade fails, suggest running lxc-create with -F. Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
This way init log messages can be seen on the console. If containerized syslog ever comes around, we can get rid of this. Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
The long opt for --name was being incorrectly compared to --new. Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Stéphane Graber authored
lxc-ls was failing in cases where $directory is a symlink to another directory. Instead have $directory be generated from the output of readlink -f "$lxc_path". Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Stéphane Graber authored
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>
-
Stuart Yoder authored
Signed-off-by:Stuart Yoder <stuart.yoder@freescale.com>
-
Dwight Engen authored
These variables are not expanded correctly in doc/lxc-create.sgml.in and a workaround is in place to ensure ${localstatedir}, and ${datadir} are set in the various shell scripts that use it. There is no workaround to ensure ${datadir} is set in src/lxc/lxc-create.in, nor is ${localstatedir} set in templates/lxc-altlinux.in so I think that these are currently broken. Using AS_AC_EXPAND instead of AC_SUBST fixes these problems and removes the need for the workarounds. In addition the lxc-start-ephemeral.in script can be autoconf'ed instead of sed'ed by the makefile. Signed-off-by:Dwight Engen <dwight.engen@oracle.com>
-
Dwight Engen authored
Fix building of rpm by non-root user. Include templates in rpm, fix rpm path of lxc-init. Signed-off-by:Dwight Engen <dwight.engen@oracle.com>
-
Dwight Engen authored
I was getting raw nroff ".SH DESCRIPTION" in my man pages. This fixes the synopsis cmd args so that doesn't happen. Added replaceable to a few arguments. Signed-off-by:Dwight Engen <dwight.engen@oracle.com>
-
Dwight Engen authored
Put pkg-config .pc file in libdir. Signed-off-by:Dwight Engen <dwight.engen@oracle.com>
-
Serge Hallyn authored
When lxc is executing a script and pclose fails, log the errno to help debug what happened. Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Stéphane Graber authored
This fixes a case where lxc.utsname would be set empty as copy_configuration wasn't getting the container name. Signed-off-by:
Rex Tsai (蔡志展) <rex.tsai@canonical.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Stéphane Graber authored
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>
-
Stéphane Graber authored
configure.ac used to set the template path to /usr/share/lxc/templates. Instead use ${datadir} to make it follow ${prefix}. Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Serge Hallyn authored
If rootfs is a symbolic link but not to a block device, then do a separate rm of its contents. We have to do this because, out of cowardice, we call rm with --one-filesystem. Removing the '-o -h $rootdev' is ok, because if $rootdev is a symbolic link to a block device (including lvm blockdev) then -b will still return true. Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Scott Moser authored
Fix for quantal images which do not have the user 'ubuntu' present. Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1045955Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Stéphane Graber authored
This include is conditional on apparmor being selected. Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-