From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6624140832220905472 X-Received: by 2002:a17:906:698c:: with SMTP id i12-v6mr251807ejr.10.1542302973863; Thu, 15 Nov 2018 09:29:33 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a50:ba6c:: with SMTP id 41ls2527890eds.9.gmail; Thu, 15 Nov 2018 09:29:33 -0800 (PST) X-Google-Smtp-Source: AJdET5ddAnLVnKOaJHxQehFzFkJT+DVtov17Ld+jrA8D7X5uvHGvdLRHFBankrxLKXjdi53bn5xF X-Received: by 2002:a50:90f5:: with SMTP id d50mr262615eda.9.1542302973464; Thu, 15 Nov 2018 09:29:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542302973; cv=none; d=google.com; s=arc-20160816; b=vREbaSa0Vd6rM0K9BWbCC1vQDx1/Xqwap+tHyF++mjupbYQEe79w3rmENxFYyMNePA ZsTN/Np6ibwzUd29IHMKvSNFqa4ApLqac0zOEIwlv8zEa4TpkIyeNUZTFU3b3H2ck8r2 0ZodzFa0syw7TA5feW4Wblivo7BBBCQ7jmJPYyPzt5ONfPhnF1CcflZ16TLSVxA8AFok WCxXSfZiD3x7XKLrV2xQTsw/Nxs+virdkRLkk60BMhAoT59ay00aKHk6e01B81abfgFq ovhTaZV/sXuXSgXkMKxtWQjOWX8RFkf2ARfSroANR7zTwjqIp/7HzlMFal5QkQwQQBsI 64gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=iR52epIjg7fVli3a339BAbxSsttYIezvbos4HDjGFg8=; b=0Sf78uto7FiH3zOsSbwTtbrSyppf6GvwzJYK6bjvbCBooTVVN3uWz0i7urr9X6jV0U ozQD7wPvax+U0XV8Zax3d0OvlkYiBENjV+444AzhSc8GTdTmeugPNDPqAWTFoJBG36Zw RbZ5KkOHC/22t3mQ6GZH2qGi1OXn956nJlDnURzn05P5UYaij8iLYwsbeVnvFbl0XO4k Mctq9B2WaXNLNJsOfKgGSTogYLNsptbyj7Wh2ImqZrKYTlqccFn/3witvFdrdBlE2xfQ BM7238E35A8fZgmbfsU4Ro8KY9+ihCBr1+vgJygsKgwTeIs+obvRFIy7ji/7yT4F5McH NgVg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id n20-v6si825124edt.3.2018.11.15.09.29.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Nov 2018 09:29:33 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id wAFHTWFR030686 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 15 Nov 2018 18:29:33 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.0.37]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id wAFHTW4Y005496; Thu, 15 Nov 2018 18:29:33 +0100 From: Henning Schild To: isar-users Cc: Henning Schild Subject: [PATCH 2/3] meta/isar-bootstrap: allow passing a SCRIPT to debootstrap Date: Thu, 15 Nov 2018 18:29:30 +0100 Message-Id: <20181115172931.12117-3-henning.schild@siemens.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181115172931.12117-1-henning.schild@siemens.com> References: <20181115172931.12117-1-henning.schild@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: xtdR7QxJOTJk Debootstrap uses scripts that usually have the same name as SUITE so we never set them. In order to install a SUITE that an outdated version of debootstrap does not (yet) know, we can tell debootstrap which SCRIPT to use. In fact many modern SUITEs will use SCRIPTS we might already have, we just do not have the symlink to them. i.e. "cosmic" uses the SCRIPT "gutsy" and a debootstrap from "stretch" does know "gutsy" but not "cosmic" So we can debootstrap SUITEs from the future, given they use a SCRIPT we already have. Signed-off-by: Henning Schild --- meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc index 21454b0..fc12e58 100644 --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc @@ -193,8 +193,8 @@ isar_bootstrap() { ${DEBOOTSTRAP_KEYRING} \ "${@get_distro_suite(d, True)}" \ "${ROOTFSDIR}" \ - "${@get_distro_source(d, True)}" - + "${@get_distro_source(d, True)}" \ + ${DISTRO_DEBOOTSTRAP_SCRIPT} else "${DEBOOTSTRAP}" $debootstrap_args \ --arch="${DISTRO_ARCH}" \ @@ -202,7 +202,8 @@ isar_bootstrap() { ${DEBOOTSTRAP_KEYRING} \ "${@get_distro_suite(d, False)}" \ "${ROOTFSDIR}" \ - "${@get_distro_source(d, False)}" + "${@get_distro_source(d, False)}" \ + ${DISTRO_DEBOOTSTRAP_SCRIPT} fi # Install apt config -- 2.19.1