c86f214c1e07e13414d43c34711702ed659f8a65 |
|
26-Aug-2016 |
Elan Ruusamäe <glen@delfi.ee> |
templates: fedora requires openssl binary
/usr/share/lxc/templates/lxc-fedora: line 1078: openssl: command not found
Signed-off-by: Elan Ruusamäe <glen@delfi.ee> |
95658200a0e3cf21ba8ea547dabcd2f3d5bca078 |
|
28-Jan-2016 |
Nehal J Wani <nehaljw.kkd1@gmail.com> |
Fix echo statement inside fedora template
We no longer use mirrors.kernel.org.
Commit f71e8f4 switched it to archives.fedoraproject.org
Signed-off-by: Nehal J Wani <nehaljw.kkd1@gmail.com> |
d510d5224b0ddfc831c85ec3bca944f949ebd84f |
|
28-Jan-2016 |
Nehal J Wani <nehaljw.kkd1@gmail.com> |
Fix message after {fedora|centos}container creation
If the backingstore is not 'dir', then lxc shouldn't ask the user
to change the password by performing a 'chroot'. Rather, the user
should start, attach, use the passwd command, and then stop the
container.
Fixes #731
Signed-off-by: Nehal J Wani <nehaljw.kkd1@gmail.com> |
3bca4f5bb1ecb56e1bb76d93238ddec60d6df320 |
|
19-Jan-2016 |
Nehal J Wani <nehaljw.kkd1@gmail.com> |
Fix Comment inside Fedora Template
We no longer use mirrors.kernel.org.
Commit f71e8f4 switched it to archives.fedoraproject.org
Signed-off-by: Nehal J Wani <nehaljw.kkd1@gmail.com> |
f71e8f41fb129043323b13290c6697d27e603335 |
|
19-Jul-2015 |
Stéphane Graber <stgraber@ubuntu.com> |
lxc-fedora: Default to 22 but use 20 squashfs
The Fedora 22 squashfs doesn't appear to work, the Fedora 21 isn't
available, so lets use the fedora archive mirror and pull the good old
Fedora 20 squashfs.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
c28d2f446b1cfc3871a4e4303c7c7d459dde15e6 |
|
19-Jul-2015 |
Stéphane Graber <stgraber@ubuntu.com> |
Default to Fedora 21 as 22 no longer uses yum
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
b65c5374d4b37a0d2be4b583b3018f9aa57cea33 |
|
19-Jul-2015 |
Stéphane Graber <stgraber@ubuntu.com> |
Fix fedora some more
Apparently the paths have changed on the rsync server.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
29be874c4e17de51cd818ed0913acb9f2e67e1ea |
|
19-Jul-2015 |
Stéphane Graber <stgraber@ubuntu.com> |
Fedora 20 no longer exists on the mirrors
Switch to Fedora 22 for now.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
7e1a946f61d92226453f57cf6d38967303f1bc76 |
|
16-Jun-2015 |
Lenz Grimmer <lenz@grimmer.com> |
use `hostname` for DHCP_HOSTNAME in ifcfg-eth0
Updated centos/fedora/oracle templates to use `hostname` for DHCP_HOSTNAME in
/etc/sysconfig/network/ifcfg-eth0, so the container's host name is propagated
to the host's DHCP server (e.g. dnsmasq, which also acts as the DNS server).
This resolves lxc/lxd#756
Signed-off-by: Lenz Grimmer <lenz@grimmer.com> |
6dc6f80bfd7cb169948f2ef9a95dcf6d2edee853 |
|
11-Jun-2015 |
Kevin Carter <kevin.carter@rackspace.com> |
Added container-cache option to templates
This change adds in the container-cache option within the mainline
default lxc templates. The pupose here is to allow a template to
pull from a location that may not be `@LOCALSTATEDIR@/cache/lxc`
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> |
e97aa8176f8b497ae1dd2fc634f4d94b3bc4632c |
|
13-Apr-2015 |
Laurent Vivier <Laurent@vivier.eu> |
lxc-fedora: manage secondary architectures
URL for packages and LiveOS differs from x86, x86_64 and ARM.
This patch allows to select the good mirror URL according to
the architecture.
Primary architecture: http://mirrors.kernel.org/fedora
Secondary architecture: http://mirrors.kernel.org/fedora-secondary
The managed secondary architectures are only ppc64 and s390x,
the secondary architectures for Fedora 20 (the base of initial bootstrap).
Signed-off-by: Laurent Vivier <Laurent@Vivier.EU>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
9f177a00130a70e9c7f64432a8dea3b64e533fe5 |
|
28-Jan-2015 |
Stéphane Graber <stgraber@ubuntu.com> |
lxc-{centos|fedora}: Respect --rootfs
Close #406
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
c2af30847aeaaadeea962015de083c46c271bfbc |
|
21-Jan-2015 |
Michael Adam <obnox@samba.org> |
add "--mask-tmp" to lxc-fedora, plus some template script fixes]
Hi Michael,
do you have any concerns with the attached patch to
the fedora template that adds an option --mask-tmp
that prevents fedora/systemd from over-mounting
/tmp with tmpfs, which is useful in some cases?
Thanks - Michael
----- Forwarded message from Michael Adam <obnox@samba.org> -----
Date: Sat, 10 Jan 2015 13:12:06 +0100
From: Michael Adam <obnox@samba.org>
To: LXC development mailing-list <lxc-devel@lists.linuxcontainers.org>
Subject: Re: [lxc-devel] [PATCHES] add "--mask-tmp" to lxc-fedora, plus some
template script fixes
User-Agent: Mutt/1.5.23 (2014-03-12)
On 2015-01-10 at 13:08 +0100, Michael Adam wrote:
> On 2015-01-10 at 04:05 +0000, Serge Hallyn wrote:
>
> > The less controversial one is adding mask-tmp to the fedora template.
> > It looks fine to me, but that should go separately to mwarfield, our
> > fedora template maintainer :)
>
> I had notified mhw of my patches on irc, but apparently he is
> currently very busy.
>
> For a start, following is an update of the uncontroversial fix
> patches, i.e. the fix patche without the path ones, and without
> the mask-tmp patch.
And here comes the mask-tmp patch.
It needs to be applied onto the previous fix-patchset.
From 9589dca113535ed2f4faad89db2fab33bb8a9d7e Mon Sep 17 00:00:00 2001
From: Michael Adam <obnox@samba.org>
Date: Thu, 8 Jan 2015 10:25:24 +0100
Subject: [PATCH] lxc-fedora: add a new option --mask-tmp
This will configure the container to prevent the standard
behaviour of over-mounting /tmp with tmpfs, which can be
undesirable in some cases.
My personal use case is vagrant-lxc in combination with
vagrant-cachier.
Signed-off-by: Michael Adam <obnox@samba.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
d89de2399ce0e6c213a742c246574f2ca0afad0d |
|
21-Jan-2015 |
Stéphane Graber <stgraber@ubuntu.com> |
Set kmsg to 0 by default
It's now been proven over and over again that the symlink from /dev/kmsg
to /dev/console is harmful for everything but upstart systems. As Ubuntu
is now switching over to systemd too, lets switch the default.
Upstart users wishing to see boot messages can always set lxc.kmsg = 1
manually in their config (so long as they don't expect to then
dist-upgrade the container to systemd succesfuly).
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
124fa0a869c4cf5b4dc3ea2281446df32f0a7980 |
|
21-Jan-2015 |
Stéphane Graber <stgraber@ubuntu.com> |
Turn autodev on by default
Now that autodev works fine with unprivileged containers and shouldn't
come with any side effect, lets turn it on by default.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
fccc348be453c3991db351f336dbe9da8e861e97 |
|
10-Jan-2015 |
Michael Adam <obnox@samba.org> |
lxc-fedora: let help text fit into 80 columns
by breaking and shortening some lines.
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
9aed78fad15fe35c53d1a6af8147fca7018e147f |
|
10-Jan-2015 |
Michael Adam <obnox@samba.org> |
lxc-fedora: protect possibly unset variable with quotes for -z check
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
98d316e29af90f1b2084fc3c8c4c4e0316b894c5 |
|
10-Jan-2015 |
Michael Adam <obnox@samba.org> |
lxc-fedora: fix parsing of option "--clean": it takes no argument
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
afc55ed2794ce63714bfcee70b1d0d42d3e8ee05 |
|
05-Jan-2015 |
Michael Adam <obnox@samba.org> |
lxc-fedora: In fedora21, the fedora-repos package is needed.
fedora-release has been split into fedora-release and fedora-repos.
Signed-off-by: Michael Adam <obnox@samba.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
5b75ee4747c5f26c52cfb6127b6420f38f4fba88 |
|
05-Jan-2015 |
Michael Adam <obnox@samba.org> |
lxc-fedora: when using systemd, set lxc.kmsg = 0 in the config
This is to prevent systemd-journald to enter a 100% cpu loop.
Signed-off-by: Michael Adam <obnox@samba.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
ec64264d78d4ed608553842ce9e1f07eeab2a032 |
|
05-Dec-2014 |
Veres Lajos <vlajos@gmail.com> |
typofixes - https://github.com/vlajos/misspell_fixer
Signed-off-by: Veres Lajos <vlajos@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
4849ab991b31b90fab06848366f08d689983ad89 |
|
08-Aug-2014 |
Michael Werner <xaseron@googlemail.com> |
templates: switch from arch command to uname -m
Signed-off-by: Michael Werner <xaseron@googlemail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
e5469dadd9fa248fe9992c8323af115f78dbbb27 |
|
03-Jun-2014 |
Michael H. Warfield <mhw@WittsEnd.com> |
lxc-fedora.in: Correct some systemd target setups.
Set the halt.target action to be sigpwr.target. This allows
SIGPWR to properly shut the container down from lxc-stop.
Renable the systemd-journald.service.
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
e13923c71155453c856f423e15bdec11d92039fa |
|
03-Apr-2014 |
Michael H. Warfield <mhw@WittsEnd.com> |
Added lxc.arch to configuration files for CentOS and Fedora
Added lxc.arch to the resulting container configuration files
to support i686 on x86_64 cross arch containers.
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
826cde7c2100e1f4419a54b5c930c0854e01e87e |
|
23-Mar-2014 |
Michael H. Warfield <mhw@WittsEnd.com> |
Added root_password_expired password control tuning knob.
Added the environment variable "root_password_expired" to
control if the initial, temporary, root password is initially
set up as "expired". If set to "yes" (default), the root password
is set as "expired" and the user must change it at first login.
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
779b47fdca6975f70541fbc7c25a34393ec5c24b |
|
23-Mar-2014 |
Michael H. Warfield <mhw@WittsEnd.com> |
Support SIGPWR in Fedora and Centos containers.
Added code to catch SIGPWR for Upstart in Fedora and CentOS
containers as well as for Systemd in Fedora containers.
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
f5067ecbcc1e97052c33269b4afa6375073a91a1 |
|
23-Mar-2014 |
Michael H. Warfield <mhw@WittsEnd.com> |
Set timezone for new container if not previously defined.
If the container does not already contain an /etc/localtime
timezone definition, then copy a definition from the host to
the container. This is often a symlink to an appropriate
system timezone definition files and is presumed to exist in
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
dfb2291eca56361d0ffa2fcbca6bfecb65a623a7 |
|
23-Mar-2014 |
Michael H. Warfield <mhw@WittsEnd.com> |
Fix arch cross-build when running distro cross-build.
Corner case existed when building a cross-arch container (i686 on x86_64)
on a cross-distro host (Fedora container on Ubuntu host). Fixed the
arch "fixup" code to do the right thing when running from the bootstrap.
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
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> |
08754f305b580801ae800df32ace5dc7b9b191d9 |
|
24-Jan-2014 |
Michael H. Warfield <mhw@WittsEnd.com> |
Update CentOS and Fedora templates to support archtectures option.
Added code to the CentOS and Fedora templates so that x86 32 bit containers
may be built on x86_64 platforms. Like archectectures may also be trivially
used as well.
Option added is "-a {arch}".
Additionally cleaned up some bash specific logic.
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
1ecee40b7dcb933d2c9910f07ed26c6a55e18206 |
|
22-Jan-2014 |
Michael H. Warfield <mhw@WittsEnd.com> |
Update Fedora and CentOS templates for common conf includes.
This updates the Fedora and CentOS templates to utilize a common
included config. This is largely based on the changes in the Oracle
template with some exceptions.
Dropping of setpcap (present in the Oracle template) is commented out in
the Fedora template. It seems to cause problems, such as large login
delays with Fedora 20 containers (but not Fedora 19 - strange).
The Fedora template is further modified to disable systemd-journald.service
as it is unnecessary in a container and causes serious problems when
running in a Fedora 20 container.
The Fedora template is also updated to default to Fedora 20 when running
on a non-Fedora host.
Regards,
Mike
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
b4f7af7a520b23c873e404562ec518a576e63d4c |
|
14-Jan-2014 |
Michael H. Warfield <mhw@WittsEnd.com> |
Modify lxc-fedora and lxc-centos for multiple issues...
This is a reissue of two previous patches along with some additional
changes for hardening the root password process based on discussions
on-list.
--
This patch modifies the lxc-fedora and lxc-centos templates for 3 things.
1) Extensively modifies root password generation, storage, and management
based on discussions on the devel list.
Root passwords are hardened and have advanced configurability.
A static password may be provided.
A password based on a template may be generated, including ${RANDOM}.
A password may be generated through mktmp using a template with X's.
Root passwords default to expired, initially.
Passwords may optionally be echoed to stdout at container creation. (no)
Passwords may optionally be stored in ${rootfs_path}/tmp_root_pass. (yes)
Users may be optionally forced to change the password at creation time. (no)
Default is to generate a pattern based password and store, no force change.
All of this may be overridden by environment variables through
conditional assignment.
2) Random static hardware addresses are generated for all configured
interfaces.
3) Add code to create sysv init style scripts to intercept shutdown and
reboot to prevent init restart and hang for CentOS and legacy Fedora
systems on shutdown, reboot, init 0, and init 6. This solves a variety
of hang conditions but only affects newly created containers. Does
not have any impact on systemd based containers.
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
99c2fb07d74c20d0eec38c05c4ac64e5782d8e7d |
|
02-Jan-2014 |
Michael H. Warfield <mhw@WittsEnd.com> |
Additional logic for dealing with container shutdown / reboot
Additional logic for dealing with container shutdown / reboot
Fix a problem with CentOS containers and legacy Fedora (<16) containers
not shutting down or rebooting properly. Copy /etc/init.d/halt to
/etc/init.d/lxc-halt, deleting everything from the "hwclock save" and
all after and append a force halt or reboot at the end of the new
script, to prevent reexecing init. Link that script in as
S00lxc-halt in rc0.d and S00lxc-reboot in rc6.d to intercept the
shutdown process before it gets to S01halt / S01reboot causing the hang.
Fixed some typos in the CentOS template that were introduced in the
previous patch for hwaddr settings and missed in regression testing.
Cleaned up some instruction typos and tabs from previous patch.
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
53bd92eafa23d43cf8ab8a7b0447a0b7a238d250 |
|
25-Dec-2013 |
Michael H. Warfield <mhw@WittsEnd.com> |
Fix version checking typos in Fedora template.
Backported typo fixes from CentOS template back to Fedora Template
Bumped default rev from Fedora 18 to Fedora 19
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
5266cf0a640f93d3784ed3ea121de4ada1feb127 |
|
25-Nov-2013 |
Michael H. Warfield <mhw@WittsEnd.com> |
lxc-fedora: Fixes for selinux and pam_loginuid.so
Just some additional catches for disabling selinux and pam_loginuid.so
thanks to Dwight Engen and the Oracle template.
Also add ssh and ssh-server to the default installation.
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
6a59920b640e89b4b12a47175b5cbb68a48a9289 |
|
25-Nov-2013 |
Michael H. Warfield <mhw@WittsEnd.com> |
Fix stupid architecture error.
From 38cfabdbe0e46f5a0ed20687fcda48424b4a7b6d Mon Sep 17 00:00:00 2001
From: "Michael H. Warfield" <mhw@WittsEnd.com>
Date: Mon, 25 Nov 2013 10:34:48 -0500
Subject: [PATCH 1/2] Fix stupid architecture error.
Organization: Thaumaturgy & Speculums Technology
Fix stupid architecture error.
Stupid error and I did it! Fixed hard coded x86_64 in several spots.
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.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> |
6766033125c328972d59a97495654feb25728f51 |
|
04-Oct-2013 |
Michael H. Warfield <mhw@WittsEnd.com> |
templates/lxc-fedora Network startup w/o Network Manager
This patches the Fedora template to insure that the legacy network
startup scripts are enabled when NetworkManager has not been installed
in the container (default).
It also fixes a login problem with pam_loginuid.so in a container.
https://bugzilla.redhat.com/show_bug.cgi?id=966807
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
--
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
0655a606dad52725eedd8af18a15f246627091f9 |
|
04-Oct-2013 |
Serge Hallyn <serge.hallyn@ubuntu.com> |
trivial: remove trailing whitespce from lxc-fedora
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
fe5c5ea69323ef9558648645e08d54edd866adf6 |
|
04-Oct-2013 |
Serge Hallyn <serge.hallyn@ubuntu.com> |
lxc-fedora: remove 4:0 and 4:1 from devices whitelist
They are the real /dev/tty{0,1}, which are physical consoles. Lxc
bind-mounts over them. Don't let the container use these!
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
449989ac38e07080c6b951de31ccba82753058b7 |
|
04-Oct-2013 |
Michael H. Warfield <mhw@WittsEnd.com> |
templates/lxc-fedora Rework for distro independence.
This patch reworks the Fedora template to operate in the most "distro
agnostic" manner possible. It should even run on distros where rpm and
yum are not present and not available or may be incompatible. It
depends on the most basic set of system facilities like rsync but does
require squashfs support also be available to mount a LiveOS runtime.
Based on comments at Linux Plumbers, what I had been referring to as a
"run time environment" or RTE has been renamed in the code to refer to
it as a "bootstrap". It has been tested on Fedora (of course),
OpenSuse, Ubuntu, and Oracle (latest host versions of each) building
Fedora containers of F19 back through F9. Varying levels of database
problems were encountered from F11 and back and are "will not fix" due
to versions being long EOL. F15 and F16 build but do not run "out of
the box" due to systemd version issues and those are also "will not fix"
for the same reasons.
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
c61eaadcf87ef9d336992651ff85387de62b8a1a |
|
02-Oct-2013 |
Stéphane Graber <stgraber@ubuntu.com> |
lxc-fedora: Show usage when no name is passed
Reported-by: Anatoly Techtonik
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
8983aa6e1e831f690be9cf38ae434a0de8b5107d |
|
02-Oct-2013 |
Stéphane Graber <stgraber@ubuntu.com> |
fedora: Use consistent tab/space indent
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
431fdc427247ab1a6189c46d0743e38f30f9e1e9 |
|
02-Oct-2013 |
Renich Bon Ciric <renich@woralelandia.com> |
Update lxc-fedora.in
Fedora 19's release has no -1 revision; it's a -2 revision actually:
ftp://mirrors.kernel.org/fedora/releases/19/Fedora/x86_64/os/Packages/f/
Signed-off-by: Renich Bon Ciric <renich@woralelandia.com>
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> |
dfa7aa3a836aef5d0f1aebe0f6eeff65d20239ad |
|
30-Aug-2013 |
Stéphane Graber <stgraber@ubuntu.com> |
fedora: Add missing double-quotes.
Reported-by: tlc
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> |
bf7d3153c925ca1404662a8fe031da27308f4187 |
|
15-Aug-2013 |
Michael H. Warfield <mhw@WittsEnd.com> |
lxc-fedrora: New patch for systemd detection and init configuration.
Satoshi Matsumoto certainly had the right idea and in spotting a bug in
the lxc-fedora template for systemd detection. Heart was in the right
spot but patch was not what we needed.
I've looked the patch code over for systemd support and init/upstart
support and modified the logic appropriately. If /etc/systemd/system
exists, we'll do the right thing by systemd. If /etc/rc.sysinit exists,
we'll do the right thing by init / upstart. If both are installed,
we'll trying and accommodate both in case someone is playing games with
the two (I've done this).
Patch was trivial, just took more time to actually test it and create
some containers with it and verify them, than it did to code them.
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
b9b3a92f664fe3966decd0411b25fb6b77425e23 |
|
10-Jul-2013 |
Michael H. Warfield <mhw@WittsEnd.com> |
lxc-fedora template - Fix retries, use os-release for release, add utsname.
Hey all!
Patch for the Fedora template. Several things...
1) A month or so ago, I floated an idea of adding an option for utsname
which Serge seemed to like but we let it float for more feedback (none
came).
2) In private mail to Serge and Stéphane I mentioned the idea of using
the CPE (Common Platform Enumeration) for host distro and version
identification. I heard back from Serge but not Stéphane. CPE is a
standard promoted by NIST and Mitre (along with CVE and CVSS) as part of
the security community as a common identification mechanism. It's
supported by RedHat based distros and many others (notable exception
Ubuntu). I've patched the Fedora template to parse first
the /etc/os-release file or, alternatively, the /etc/system-release-cpe
file for the distro ID and version instead of the human
readable /etc/redhat-release. There's more that can be done with that
in the realm of cross distro container builds, I suspect.
3) At the time of working on 1&2 I noticed that the retry logic in the
Fedora template just didn't seem right. I believe I posted a message
asking for clarification on that behavior. A recently post in the
-users list indicating that someone could not create a Fedora 19
container (because the release ver string was 19-2 and the template was
only looking for -1) prompted me to rework the retry logic for handling
the mirror list and servers as well as revamp the download logic to
properly identify the correct release package.
The patch for all of the above is attached below the jump. It's been
tested on Fedora 17 through Fedora 19 hosts and has created containers
for F11, F12, F13, F14, F16, F17, F18, and F19. F15 failed for rpm
dependency issues that are not worth fixing (IMHO).
Regards,
Mike
--
Michael H. Warfield (AI4NB) | (770) 985-6132 | mhw@WittsEnd.com
/\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!
--
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Signed-off-by: Serge Hallyn <serge.hallyn@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> |
5bb4a226ebec9f3fb678a282a2b2833748d6707b |
|
22-May-2013 |
Michael H. Warfield <mhw@WittsEnd.com> |
lxc-fedora template. Cleanup for rootfs.
This is just some minor changes in the way the Fedora template is
synthesizing the target rootfs_path. Currently, the template uses a
path with the container in it twice like this:
/var/lib/lxc/rasputin/rasputin/rootfs
This happens because the container name is already contained in the
"path" and the template appends it a second time. This changes the
logic to be congruent with other templates such as lxc-arch. The new
behavior will be to create the rootfs like this:
/var/lib/lxc/rasputin/rootfs
Attached below the jump.
Regards,
Mike
--
Michael H. Warfield (AI4NB) | (770) 985-6132 | mhw@WittsEnd.com
/\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!
--
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
d1240f0335e0c469b850da467661dfbb8f262727 |
|
21-May-2013 |
Michael H. Warfield <mhw@WittsEnd.com> |
lxc-fedora template - systemd console gettys
Hey all...
Patch to the lxc-fedora template to setup gettys on the ttys that are
enabled in the configuration. The area of the code already had some
modifications to that service that didn't seem to do anything and would
get wiped out by an update. I commented that out but subsumed the
change it was attempting into my command in case it does something on
another rev somewhere.
This is very similar to the logic in the OpenSuse template but doesn't
seem to appear in other templates, such as arch, which have to deal with
systemd. This isn't unique to Fedora. The templates for Fedora,
ArchLinux, and OpenSuse are the only three that seem to have any
reference to systemd at all.
Attached below the jump.
Regards,
Mike
--
Michael H. Warfield (AI4NB) | (770) 985-6132 | mhw@WittsEnd.com
/\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!
--
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> |
627fe3b4c3a65535eb53c3d63794705d8f6322d4 |
|
15-May-2013 |
Michael H. Warfield <mhw@WittsEnd.com> |
lxc-fedora-template: autodev, hostname, ARM archs, Raspberry Pi fixes
This took a lot longer for me to get around to it... Sorry.
Patch to the lxc-fedora template.
I didn't get any further comments from my earlier proposal, weeks ago,
and did get one addition based on comments about properly setting the
hostname in /etc/hostname, which I've added. I could have broken them
into separate patches but most are pretty small and minor.
Changes:
* Map armv6l and armv7l architectures to "arm" for yum and repos to
function properly.
* Detect Fedora Remix distros with no "/etc/fedora-release" file
(Raspberry Pi) and find proper release versions when "remix" part of the
file context.
* Change default Fedora container on non-Fedora hosts to Fedora 17.
* Added code for autodev for Fedora systemd containers.
* Added code to set /etc/hostname for Fedora > 14 (systemd).
* Fix a few typos.
Regards,
Mike
--
Michael H. Warfield (AI4NB) | (770) 985-6132 | mhw@WittsEnd.com
/\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!
--
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.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> |
ed4616b1cfbc84dd01caa8546d813e8c5d482921 |
|
21-Apr-2013 |
Christian Bühler <christian@cbuehler.de> |
Use "uname -m" instead of "arch"
According to "arch"'s manpage, it's identical to "uname -m".
Some distros ship uname but don't ship arch, however all distros ship uname,
therefore it makes sense to use "uname -m" whenever possible.
Signed-off-by: Christian Bühler <christian@cbuehler.de>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
29e18143a07ffab7e85cb8db4dc39d394f0c6ea0 |
|
04-Jan-2013 |
Maximilian Seesslen <mes@seesslen.net> |
fixed RELEASE_URL for fedora releases higher than 16
The Url for the fedora-release RPM changed in release 17.
Signed-off-by: Maximilian Seesslen <mes@seesslen.net>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> |
fe253caa8b98854445aaf6ee253545ee1f13beb1 |
|
06-Dec-2012 |
Stéphane Graber <stgraber@ubuntu.com> |
templates: Consistent use of locking
Move to per-template lock (except for oracle that's per-container).
Also ensure that the path used for the lock is relative to LOCALSTATEDIR.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@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> |
e29bf450cafa2ce2564aeb0b64d2014c17228407 |
|
05-Dec-2012 |
Dwight Engen <dwight.engen@oracle.com> |
Use LXCPATH and LOCALSTATEDIR instead of hardcoded /var
Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com> |
44d397891e691ab994a69766cc72e57265b62da1 |
|
04-Dec-2012 |
Serge Hallyn <serge.hallyn@ubuntu.com> |
templates: use hardlink detection in rsync
I'm not sure whether we want this: is -H ubiquitous?
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Dwight Engen <dwight.engen@oracle.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> |
a1bd64823cd5e5afc53ba24940a51151e34b8103 |
|
25-Oct-2012 |
Dwight Engen <dwight.engen@oracle.com> |
display warning when yum missing in fedora template
This early exit is preventing the warning message that follows it from
being shown.
Signed-off-by: Dwight Engen <dwight.engen@oracle.com> |
cb26f1a5eee13afe1a561ebf57245cb8629797b9 |
|
25-Oct-2012 |
Stéphane Graber <stgraber@ubuntu.com> |
Various fedora template improvements
1. don't add network segment to config
2. check for 'curl'
3. don't add $name to $path, it's already in there
4. don't add devpts to fstab, that's wrong.
5. $UTSNAME doesn't exist
6. set root pwd to root instead of rooter.
7. install fedora-release package.
8. add a console on /dev/console.
9. create empty fstab
10. don't mount devpts in rc.sysinit.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@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> |
add1d11833394aaa3a3497c2fdf548e5b14c80d4 |
|
31-Jul-2012 |
Serge Hallyn <serge.hallyn@ubuntu.com> |
templates: don't fail on busy flock
Just wait until the lock is available. That is a nicer behavior
for concurrent lxc-creates.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
80a881b232b8955b85b360d4def99e6e680ff61b |
|
31-Jul-2012 |
Serge Hallyn <serge.hallyn@ubuntu.com> |
templates: use relative paths when creating containers
At the same time, allow lxc.mount.entry to specify an absolute target
path relative to /var/lib/lxc/CN/rootfs, even if rootfs is a blockdev.
Otherwise all such entries are ignored for blockdev-backed containers.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
f9d0d2cbbf401ffb74c251e75581174d91a02cfc |
|
05-Mar-2012 |
InformatiQ <rhanna@informatiq.org> |
fix cached rootfs update* fix rootfs path* add handling of systemd
Signed-off-by: InformatiQ <rhanna@informatiq.org>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
7bd44bf6f68bfee9044ba783d1c3fc10f5f7650c |
|
28-Oct-2011 |
Tuomas Suutari <tuomas.suutari@gmail.com> |
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> |
7d303dea7dfcdcf488f879a71f7061b6c2f6620c |
|
28-Oct-2011 |
Tuomas Suutari <tuomas.suutari@gmail.com> |
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> |
de6a471a1cccd6d6cdfd0ea562dd03a33be59e83 |
|
28-Oct-2011 |
Tuomas Suutari <tuomas.suutari@gmail.com> |
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> |
f7b98d38f042c403114fd07187dfe7daed44bdda |
|
01-Sep-2011 |
InformatiQ <rhanna@informatiq.org> |
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> |
29ec8f8473c5e384a8feaddf61dee68b39d069d6 |
|
31-Aug-2011 |
Ramez Hanna <rhanna@informatiq.org> |
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> |
a30ce0ac4db1bac032799da550f747cf17e45d08 |
|
31-Aug-2011 |
Ramez Hanna <rhanna@informatiq.org> |
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> |
989457599472cba389a09d0279dd752dfbafd842 |
|
11-Aug-2011 |
InformatiQ <rhanna@informatiq.org> |
fix RELEAE_URL to not hardcode the arch
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
579ebf1283be785334b840a82b2a988f9383e663 |
|
11-Aug-2011 |
InformatiQ <rhanna@informatiq.org> |
working fedora template
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
f66331efb095656e555d65e413808dc8d3f71587 |
|
07-May-2011 |
Daniel Lezcano <daniel.lezcano@free.fr> |
templates: 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.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> |
b6e91b67178aa06eeae82bb09bd5eee2869689de |
|
07-Jun-2010 |
Daniel Lezcano <daniel.lezcano@free.fr> |
update the fedora template
Update the fedora template in order to call it from the lxc-create
script.
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> |