[meta-virtualization] [PATCH v2] docker: install script config-check.sh

Bruce Ashfield bruce.ashfield at gmail.com
Thu Nov 3 12:43:54 PDT 2016


On Thu, Nov 3, 2016 at 6:01 AM, Stefan Lengfeld <s.lengfeld at phytec.de>
wrote:

> The script /usr/share/docker/config-check.sh is very useful to test all
> kernel requirements for docker. A lot of embedded boards will use a
> custom kernel config that does not have all kernel features enabled by
> default. Install the script so kernel developer can easily enable the
> missing features.
>

Merged.

Bruce


>
> Signed-off-by: Stefan Lengfeld <s.lengfeld at phytec.de>
> ---
> v2: put script into additional package 'docker-contrib'
> v2: add package dependency to bash
> ---
>  recipes-containers/docker/docker_git.bb | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/recipes-containers/docker/docker_git.bb
> b/recipes-containers/docker/docker_git.bb
> index 42a336e..cd9a69a 100644
> --- a/recipes-containers/docker/docker_git.bb
> +++ b/recipes-containers/docker/docker_git.bb
> @@ -54,6 +54,8 @@ DEPENDS = "go-cross \
>      go-distribution-digest \
>      "
>
> +PACKAGES =+ "${PN}-contrib"
> +
>  DEPENDS_append_class-target = "lvm2"
>  RDEPENDS_${PN} = "curl aufs-util git cgroup-lite util-linux iptables"
>  RRECOMMENDS_${PN} = "lxc docker-registry rt-tests"
> @@ -125,6 +127,7 @@ do_install() {
>
>         mkdir -p ${D}/usr/share/docker/
>         cp ${WORKDIR}/hi.Dockerfile ${D}/usr/share/docker/
> +       install -m 0755 ${S}/contrib/check-config.sh ${D}/usr/share/docker/
>  }
>
>  inherit useradd
> @@ -133,6 +136,9 @@ GROUPADD_PARAM_${PN} = "-r docker"
>
>  FILES_${PN} += "/lib/systemd/system/*"
>
> +FILES_${PN}-contrib += "/usr/share/docker/check-config.sh"
> +RDEPENDS_${PN}-contrib += "bash"
> +
>  # DO NOT STRIP docker and dockerinit!!!
>  #
>  # Reason:
> --
> 1.9.1
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20161103/61f207e0/attachment.html>


More information about the meta-virtualization mailing list