Commit Graph

149 Commits

Author SHA1 Message Date
Josep Puigdemont
7d7c38165c lxc: always strdup lxc.rootfs.mount
The reason is that the generic code which handles reading lxc.rootfs.mount
always frees the old value if not NULL. So without this setting
lxc.rootfs.mount = /mnt causes segfault.

This is a backport for lxc-0.9.0 (dora) of the same fix found in
upstream's master, see commits 54c30e29 and 53f3f048.

Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-11 14:27:43 -05:00
Jonatan Pålsson
7e68875840 lxc: fixed URL for tarball
Signed-off-by: Jonatan Pålsson <jonatan.palsson@pelagicore.com>
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-10-30 11:45:54 +00:00
Bruce Ashfield
9983963960 libvirt: cleanup: remove old RRECOMMENDS
All of the old RRECOMMENDS are confirmed to be handled via PACKAGECONFIG,
so we can clean up the recipe and remove commented out reference to the
old values.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-18 13:10:57 -04:00
Philip Tricca
a1847cf12d xen: Add note about dependency on meta-selinux to README.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-18 11:05:45 -04:00
Philip Tricca
ec9e374d16 xen: build xsm policy when 'xsm' DISTRO_FEATURE is present
This pulls in a dependency on the checkpolicy compiler (native)
and adds --enable-xsmpolicy in do_configure when 'xsm'
DISTRO_FEATURE is present.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-18 11:05:38 -04:00
Philip Tricca
4b7ddfca63 xen: avoid installing flask policy file as '/boot'
Upstream patch to fix race condition between creating /boot and
installing the XSM policy. Race would cause policy to be written
to /boot instead of into the /boot directory if it didn't already
exist.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-18 11:05:06 -04:00
Yang Shi
a60666fa67 libvirt: Fix wrong depend for libxl
xen is not the right dependency for --with-libxl/--without-libxl, replace
it to libxl.

Signed-off-by: Yang Shi <yang.shi@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-18 11:04:44 -04:00
Robert Yang
d21c403a03 conf/layer.conf: add LAYERVERSION and LAYERDEPENDS
Add LAYERVERSION and LAYERDEPENDS, it needs depend on oe-core and
meta-networking layer.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-18 10:36:59 -04:00
Robert Yang
ba74aae1f9 conf/layer.conf: fix "No newline at end of file"
The last line lacked a newline (usually '\n', aka CR or CRLF) in the
end, so there was a warning from git diff:

\ No newline at end of file

The last byte of the file should be a newline.

Note:
It seems that nothing is changed in this commit, but it does change the
end of the last line.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-18 10:36:59 -04:00
Chris Patterson
505c4a1c1c xen-guest-image-minimal: add minimal xen guest image.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-10 23:32:26 -04:00
Chris Patterson
ac04991027 xen-image-minimal: update image installed modules to reflect xen fragment changes.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-10 23:32:26 -04:00
Chris Patterson
b531d00262 linux-yocto/xen: update fragment to support both dom0 and typical xen guests.
Updated linux kernel fragment to match defaults as defined in the 3.10 kernel's Kconfig files.  If defaults were not specified, modules were were used unless required by another built-in option.  As such, The core frontend drivers are included by default and the backend drivers are built as modules.

This allows privileged, PV, HVM, and PVHVM guests to work properly without additional kernel configuration or modules required in initramfs (from a Xen support perspective).

This also removes CONFIG_KVM_GUEST which was erroneously included previously.

Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-10 23:32:26 -04:00
Chris Patterson
06bb47de22 xen-image-minimal: break out arguments for xen and linux kernel as variables SYSLINUX_XEN_ARGS and SYSLINUX_KERNEL_ARGS to allow modification/overwriting.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-10 23:30:24 -04:00
Chris Patterson
1364859318 xen: Add sdl support by including dependency for libsdl.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-10 23:29:41 -04:00
Chris Patterson
ad8308a0c4 xen: add INSANE_SKIP flag 'already-stripped' to silence QA warnings about stripped qemu binaries.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-10 23:28:56 -04:00
Bogdan Purcareata
c5568d38ac libvirt: Try to fix selinux/securityfs mount handling in LXC
The current behavior for libvirt containers is to
configure a set of "basic" mounts in the new container
environment by default. Some of these mounts, such as
securityfs or selinux, might not have kernel support on
all running platforms. The added patchset implements
proper handling for this case and makes some additional
cleanups and refactoring.

The patchset is taken from the upstream libvirt mailing
list. Please refer to:

https://www.redhat.com/archives/libvir-list/2013-October/msg00270.html

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-10 23:25:16 -04:00
Philip Tricca
4b1938df72 xen: Put the XSM policy in the flask package.
It make make sense to break this out into its own package in the
future for those that want to ship a monolithic policy without the
tools but for now we should at least get it in the flask package.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-03 22:41:33 -04:00
Mark Asselstine
7fd8190b23 libvirt: don't mount securityfs or selinux if userns enabled
commit 6807238d87fd [Ensure securityfs is mounted readonly in
container] from upstream libvirt requires securityfs to be mounted,
always. Failing to use a kernel without SECURITYFS support results in
the following error when you attempt to start a lxc guest:

error : lxcContainerMountBasicFS:807 : Failed to mkdir securityfs: No
such file or directory Input/output error

Here we apply an upstream fix for this which allows you to use userns
support instead of SECURITYFS, by using <idmap> in your guest config.

A similar situation exists for SELINUX so here we are bringing in 2
more upstream commits, the first for context and the second, which
like the securityfs patch, doesn't force selinux to be mounted if
userns is used.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Cc: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-03 22:41:33 -04:00
Philip Tricca
9f2c3fcf9e xen: Put the xend daemon in the xen-xend package.
Just a bit of clean up. I know xend is deprecated and hopefully no
one will use it but it should end up in the right package.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-03 22:41:28 -04:00
David Nyström
19cb3d6615 busybox: Add getopt since lxc templates require it
Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-10-03 22:39:26 -04:00
Chris Patterson
214c4715f0 xen-image-minimal: update image to support xen 4.3.0 base with xl toolstack.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-09-24 11:45:52 -04:00
Chris Patterson
ea63508019 xen: add 4.3.0 recipe.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-09-24 11:45:52 -04:00
Chris Patterson
98ed26b831 linux-yocto: add optional support for aufs and xen using DISTRO_FEATURES.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-09-24 11:45:52 -04:00
Chris Patterson
88adab97f9 linux-yocto: add kernel fragment and scc to support xen on linux 3.4, 3.8, and 3.10.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-09-24 11:45:52 -04:00
Bruce Ashfield
6396ba2907 libvirt: uprev to 1.1.2
1.1.2 is available and fixes a number of issues with 1.1.1 (segfaults
and more).

Since 1.1.1 has been available for a while, with no significant issues
reported, I'm also removing the fallback 1.0.3 and 1.1.1 recipes with
this update.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-09-06 09:53:57 -04:00
Chris Patterson
3cd1544d73 busybox: migrate from defconfig to config fragments.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-09-06 00:39:55 -04:00
Bruce Ashfield
5b7cbf7e0b linux-yocto: add linux-yocto 3.10 bbappend
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-09-01 11:51:08 -04:00
Yang Shi
1c04c0d002 irqbalance: Uprev to 1.0.6
Add recipe for 1.0.6 version. And, add status and reload commands into
init script.

Signed-off-by: Yang Shi <yang.shi@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-29 10:14:47 -04:00
David Nyström
7234dca866 Fixed Q&A error for OpenFlow recipe
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-08-25 01:26:02 -04:00
David Nyström
88a7e97b9b Add kernel config fragment to allow OVS QoS service
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-08-25 01:24:51 -04:00
Bruce Ashfield
7c45e667ac python: replace FILESPATH with FILESEXTRAPATHS_prepend
redefining THISDIR and using FILESPATH is no longer required in a
"modern" bbappend, and in fact breaks other layers that also patch
python.

Removing THISDIR and using FILESEXTRAPATHS_prepend fixes both issues.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-21 21:37:22 -04:00
Bruce Ashfield
ef07008206 libvirt: fix overly aggresive packaging
During the 1.1.1 uprev, a debug change of overly aggressive packaging
was left in place. The restores the previous packaging divisions.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-16 23:03:15 -04:00
Bruce Ashfield
5c9d22f016 libvirt: move python PACKAGECONFIG into main recipe
The libvirt-python.inc manipulation of PACKAGECONFIG meant that the default
configuration options of the libvirt recipe never fired, since the variable
had an assignment and the lazy set of the configuration values never
applied to the build.

Moving the python PACKAGE_CONFIG options into the main recipe, and ensuring
that PACKAGE_CONFIG_${PN} is used for libvirt-python means that most builds
will now use the default configuration.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-15 08:49:59 -04:00
Bruce Ashfield
dd0c48bd13 libvirt: update to 1.1.1
Updating to the 1.1.1 libvirt release. Changes from the 1.0.3 recipe include
a fix/workaround for the:

 ../src/.libs/libvirt.so: undefined reference to `virNetTLSInit'

That is seen on some machines. The current fix is to explicilty link against
the library which provides the definition. A smarter fix via libtool may
be possible, but was elusive at the time of writing this patch.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-15 08:49:59 -04:00
Bruce Ashfield
90debab65f ovs: add /run to main package
In a systemd based build, /var/run is translated to /run. Since ovs doesn't
currently package this directory, it results in a QA error. Adding it to the
main ovs package fixes the QA issue and provides the proper runtime support.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-15 08:49:56 -04:00
Mark Asselstine
a4565b8ce7 libvirt: fix python script's improper paths
libvirt generates several python scripts using its python/generator.py
script. This uses the PYTHON variable, which in our case will be a
full path to the sysroot that will not exist on the target. For this
we are patching libvirt to allow for (but not require) TARGET_PYTHON
to be defined and used when generating these python scripts.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-12 23:46:49 -04:00
Mark Asselstine
7dfc79162c iasl: Add Intel ACPI license information
The iasl package is licensed under the Intel ACPI license. This is a
variation of the MIT license but with enough modification that we
don't want to mark it as MIT. Previously building this package would
warn about the missing license. With this change we are providing a
clear text copy of the license and calling this license out in the
iasl recipe to make the warning go away and to ensure we are clearly
defining this package's license information.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-10 22:47:11 -04:00
Mihai Prica
4d1aed4834 openvswitch: Ensure pki directory creation
RPM doesn't guarantee the order in which postinstalls are ran.
Added code to ensure the pki directory is initialized.

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
2013-07-30 22:57:34 -04:00
Mihai Prica
faf6fc4885 openvswitch: Add coreutils runtime dependency
The install and nice programs from coreutils are required by openvswitch.

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
2013-07-30 22:57:34 -04:00
Mark Asselstine
8b2a6e65c6 lxc: create lxc cache directory
Many LXC templates expect the cache directory to exist and use it without
necessarily checking if it exists. Normally the Makefile would create this
directory but since /var/cache is volatile we must use the volatile system to
create this directory at boot, or when the package is installed.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-07-13 23:06:12 -04:00
Mihai Prica
84ff6d7447 linux-yocto: Added 3.8 kernel bbappend
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
2013-07-08 23:06:40 -04:00
Bruce Ashfield
64f44848c0 busybox: remove SRC_URI reference to awk -F patch
The commit "busybox: remove awk -F patch" missed the SRC_URI
update for the dropped patch.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-07-08 22:15:06 -04:00
Bruce Ashfield
40cba01e33 busybox: remove awk -F patch
The awk patch being carried by meta-virtualization is part of the
1.21.1 busybox release. So we can drop it from the bbappend.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-07-06 22:47:09 -04:00
Ting Liu
37b6f00ddd iptables: Follow OE-Core update to 1.4.19.1 version
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-07-05 23:42:02 -04:00
Ting Liu
4c1c13675d busybox: Follow OE-Core update to 1.12.1 version
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-07-05 23:41:54 -04:00
Mark Asselstine
9fe09ac859 libvirt: make ebtables a PACKAGECONFIG
This is a bit ugly since ebtables isn't controlled via
--with/--without-PACKAGE but we can achieve the same result using the
cached path variable. Since there are no static hooks into ebtables it
doesn't get picked up via the automatic RDEPENDS so we also ensure
that we add the RDEPENDS explicitly here.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-28 14:08:48 -04:00
Joe Slater
a668e81713 libvirt: use 4 fields for PACKAGECONFIG[]
As per the PACKAGECONFIG documentation "You can omit any argument you
like but must retain the separating commas".

If we do not retain the separating commas, we might get parsing
errors, or, worse, we will think we depend on many items that we do
not enable.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-28 14:08:40 -04:00
Thomas Tai
422934f846 libvirt: fix libvirtd crash if path part of URI is missing
If the user forgets to include the path portion of the URI, instead of
receiving an error message, libvirtd crashes.

So for example attempting to make this call will cause libvirtd to
fall over.

virsh -c qemu+ssh://root@my.host.com list
(forgetting the trailing /system after the host name)

The reason for the crash is that libvirtd is trying to output an error
message with a uninitialized variable. This problem is already fixed
in the upstream so applying this fix to our tree allows this issue to
be avoided.

Signed-off-by: Thomas Tai <thomas.tai@windriver.com>
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-28 14:08:23 -04:00
Mark Asselstine
c4432c79f9 libvirt: switch to use volatile system for directory creation in /var/run
libvirt relies on its Makefile's install rules to create several
directories in /var/run/libvirt. The use of ALLOW_EMPTY_ allows these
to be included in the RPM, however, they are cleared out at boot by
the volatile system. This causes issues since the libvirt runtime does
not check for the existence of these directories prior to attempting
to create files in them, resulting in errors. Here we add to the
volatiles allowing the required directories to be created at boot or
when the volatiles are updated.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-28 14:05:48 -04:00
Mark Asselstine
b6dc9613cd openvswitch: add split between host and target python and perl paths
Openvswitch is built with the assumption that the PYTHON and PERL
variables are common between the host and target. This can result in
improper paths used for script substitutions which in turn causes
scripts which will fail to run on the target and the generated
packages to have improper REQUIRES, making them impossible to
install. These are usually not an issue since python and perl are
found in the same location on the host and target, but there is no
guarantee of this so the possibility of failure exists. By explicitly
defining the location of the python and perl on the target we can
avoid these assumptions and possibility of failure.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-06-27 13:40:41 -04:00