From: Henning Schild <henning.schild@siemens.com>
To: "[ext] Gernot Hillier" <gernot.hillier@siemens.com>
Cc: <isar-users@googlegroups.com>, <christian.storm@siemens.com>
Subject: Re: [PATCH] [WIP] Debian stretch: add complete Debian repositories
Date: Wed, 22 Nov 2017 10:18:04 +0100 [thread overview]
Message-ID: <20171122101804.0c23c36f@md1em3qc> (raw)
In-Reply-To: <20171121194617.6738-1-gernot.hillier@siemens.com>
Am Tue, 21 Nov 2017 20:46:17 +0100
schrieb "[ext] Gernot Hillier" <gernot.hillier@siemens.com>:
> To get a recent Debian image, distro "stretch" is not sufficient, but
> we need stretch-updates plus stretch/updates from security.debian.org.
>
> This patch is a WIP - it lacks corresponding changes to
> multistrap.conf.in from recipes-devtools/buildchroot and the image
> recipes for Raspbian (and older Debian versions?).
You should modify the multistrap config for buildchroot as well and
test at least on debian-stretch.
After that it is probably ok to update the other distros to your best
knowledge and let Alex give it to CI. Or maybe Alex will pick it up and
do the remaining work.
> Based on an initial patch by Henning Schild
> <henning.schild@siemens.com>.
Please turn that into a Signed-off-by.
> Signed-off-by: Gernot Hillier <gernot.hillier@siemens.com>
> ---
> meta-isar/conf/distro/debian-stretch.conf | 2 ++
> meta-isar/recipes-core/images/files/multistrap.conf.in | 17
> +++++++++++++++--
> meta-isar/recipes-core/images/isar-image-base.bb | 2 ++ 3
> files changed, 19 insertions(+), 2 deletions(-)
>
> diff --git a/meta-isar/conf/distro/debian-stretch.conf
> b/meta-isar/conf/distro/debian-stretch.conf index de6af63..8921505
> 100644 --- a/meta-isar/conf/distro/debian-stretch.conf
> +++ b/meta-isar/conf/distro/debian-stretch.conf
> @@ -2,6 +2,8 @@
> # Copyright (C) 2017 ilbers GmbH
>
> DISTRO_SUITE ?= "stretch"
> +DISTRO_SEC_SUITE ?= "${DISTRO_SUITE}/updates"
> DISTRO_COMPONENTS ?= "main contrib non-free"
> DISTRO_APT_SOURCE ?= "http://ftp.debian.org/debian"
> +DISTRO_SEC_APT_SOURCE ?= "http://security.debian.org/"
> DISTRO_CONFIG_SCRIPT ?= "debian-configscript.sh"
> diff --git a/meta-isar/recipes-core/images/files/multistrap.conf.in
> b/meta-isar/recipes-core/images/files/multistrap.conf.in index
> 491e5a2..9924781 100644 ---
> a/meta-isar/recipes-core/images/files/multistrap.conf.in +++
> b/meta-isar/recipes-core/images/files/multistrap.conf.in @@ -4,8 +4,8
> @@ [General]
> noauth=true
> unpack=true
> -bootstrap=##DISTRO## Isar
> -aptsources=##DISTRO##
> +bootstrap=##DISTRO## ##DISTRO##-updates ##DISTRO##-security Isar
> +aptsources=##DISTRO## ##DISTRO##-updates ##DISTRO##-security
> configscript=##CONFIG_SCRIPT##
> setupscript=##SETUP_SCRIPT##
> hookdir=##DIR_HOOKS##
> @@ -17,6 +17,19 @@ components=##DISTRO_COMPONENTS##
> packages=##IMAGE_PREINSTALL##
> omitdebsrc=true
>
> +[##DISTRO##-updates]
> +source=##DISTRO_APT_SOURCE##
> +suite=##DISTRO_SUITE##-updates
> +components=##DISTRO_COMPONENTS##
> +omitdebsrc=true
> +
> +[##DISTRO##-security]
> +source=##DISTRO_SEC_APT_SOURCE##
> +suite=##DISTRO_SEC_SUITE##
> +components=##DISTRO_COMPONENTS##
> +#packages=##IMAGE_PREINSTALL##
skip this comment
Henning
> +omitdebsrc=true
> +
> [Isar]
> packages=##IMAGE_INSTALL##
> source=##DEPLOY_DIR_APT##
> diff --git a/meta-isar/recipes-core/images/isar-image-base.bb
> b/meta-isar/recipes-core/images/isar-image-base.bb index
> 121b586..cc8853f 100644 ---
> a/meta-isar/recipes-core/images/isar-image-base.bb +++
> b/meta-isar/recipes-core/images/isar-image-base.bb @@ -41,7 +41,9 @@
> do_rootfs() { sed -e 's|##IMAGE_PREINSTALL##|${IMAGE_PREINSTALL}|g' \
> -e 's|##DISTRO##|${DISTRO}|g' \
> -e 's|##DISTRO_APT_SOURCE##|${DISTRO_APT_SOURCE}|g' \
> + -e 's|##DISTRO_SEC_APT_SOURCE##|${DISTRO_SEC_APT_SOURCE}|g' \
> -e 's|##DISTRO_SUITE##|${DISTRO_SUITE}|g' \
> + -e 's|##DISTRO_SEC_SUITE##|${DISTRO_SEC_SUITE}|g' \
> -e 's|##DISTRO_COMPONENTS##|${DISTRO_COMPONENTS}|g' \
> -e
> 's|##CONFIG_SCRIPT##|./'"$WORKDIR_REL"'/${DISTRO_CONFIG_SCRIPT}|g' \
> -e 's|##SETUP_SCRIPT##|./'"$WORKDIR_REL"'/setup.sh|g' \
next prev parent reply other threads:[~2017-11-22 9:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-21 19:46 Gernot Hillier
2017-11-22 9:18 ` Henning Schild [this message]
2017-12-08 18:34 ` Henning Schild
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171122101804.0c23c36f@md1em3qc \
--to=henning.schild@siemens.com \
--cc=christian.storm@siemens.com \
--cc=gernot.hillier@siemens.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox