From patchwork Mon Jan 30 12:51:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: roberto.foglietta@linuxteam.org X-Patchwork-Id: 2568 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 30 Jan 2023 13:52:10 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f60.google.com (mail-wr1-f60.google.com [209.85.221.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 30UCq9Zo016994 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Jan 2023 13:52:09 +0100 Received: by mail-wr1-f60.google.com with SMTP id k12-20020a5d6d4c000000b002bff57fc7fcsf347483wri.19; Mon, 30 Jan 2023 04:52:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675083124; cv=pass; d=google.com; s=arc-20160816; b=eDdNBS2NEnXGOIjgv+ANZO6eGY9nF6BL+EdtcDwkRVATNJvkGcEHGofLh0HQn+KFhP sHPKmpJiWLtORerPuOKnQX9mMD3Hie8ChD3WZ5bgUTNpsDVwX+hbdYrsqk4tVqC3LLOx 8ejA62u7RNUatbg1dKSIqYnmfhQCaPCEVwTQS8pG+TZsA5LM31jZkceH7robnVEJrvnJ lHviZSAEzkltHtLCidfo+LjGaNc1lL3PoUY61xu8EHzTCjSkSTYtAVEj9M0oGBkGnY4R SxaNowMRMrXQ6Va2CJWz8Z9GcVDfzjdWN53uowqAwFhC4zPYXpM2GejNWCQkJgASgk37 vnGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=VGU/HzsGsgqX8MfAx2WQLivQ6w9iFS3QpQlo6VvV0YM=; b=a6hqoOPPDtMkjtrlQGbuBjlzXqQlEPeb2XWKivWtXErMIqBIrQx3T7g+9tWU0/kjRd s++Xle8yb1XPiD7HhYnovuTej8O8UvFtdhqEK40HwUQqee1us+4ME/HNi8D7VSG8Ikvg K6Qy9sV/3NdVhgTA8Kt/ZMOcm49NqxeLKcwJwj4mA78ZK6bEF5lvxoMs1c6ocnmZreXk hZrrz51CzF9ZpYkIg8N9WiBR8+2Q70EotpgnGGnE7LdHAzYdGFghAQdww51Z84i3bqEK +Z3k9iudL76bvx/tjzrIED44hxCxd/iRjrFnjvP1hIVk5ZEpNoT/Nfk+Rxt3j4W95Adx OBVA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of roberto.foglietta@linuxteam.org designates 2001:4b7a:2000:18::167 as permitted sender) smtp.mailfrom=roberto.foglietta@linuxteam.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=VGU/HzsGsgqX8MfAx2WQLivQ6w9iFS3QpQlo6VvV0YM=; b=Ni13/Dg6KA0vBsjMEVOdx6XJVlw4p5mMU/uPJlW0J9GGvJgGH7MixnulNhLSUnm8xO Mc0MHlDjU41z2J6qFX9aIEQZvOG+ODu9VZlBeKxCkimKzj0qkxrxm1jLQlTk5fTPuvNs EsKiRcxrHV7HyKwjjYTpR5CWFiEiBz2JgGtt/S+G21UVlgnh+3aP/iKrujKEpbFGDphC jF0kwnBveCLaAygg6Odkk9K/wGJ7S8HeFd0rSfnp1fq6iezUosrtWy+lxQ7e5RI26nZs sysL4NzFACYbAuLkstCcwL/lnzcEbl/DHUm1cz4x7X02tMXrLVIEhhwV3TDTqqHIc0Eu NiNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=VGU/HzsGsgqX8MfAx2WQLivQ6w9iFS3QpQlo6VvV0YM=; b=lkNLF4YLA0ci5KltJiZ1H9aissZito6caZK541S/ppJUgbohiYgHOd1VBsixN/622y 9NHB5JiGWfc54gQDBkqKybi1hRlGjcciqoVk0SoWwx9OkU+n18FRKcnL1SwHVCQK8jRA ywU3GnxpyIdC1MfTZhnC7FQ+LI7aCvjTpdRxLm7IdK73qpvLUCbkdzAxMiCDtYpgEg3W QDp7KvhyEbFr2yFxe3Dg48AQgH4K3vlYRPtCmQ0M5b+24U3R71VaTqvuVQ80c/Jvr/ct pmnwhoffYab5WksJqghF9bE2HOBhvRJpQwD9OG+bhvKoClz9sOocFGI0FMfzJfm5ootD w7HA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AO0yUKUiZnr0Ipn82HH4ucRDbG7KUsuMsDODrjUngwVOZxEIPehptyZX by7gr1Y2rQT/PvIy+KQwwko= X-Google-Smtp-Source: AK7set80lXYqWYopRG5ERxp5eVSHskk0rHL556Cm7dZTGLsv/7rtkhvZGK8SffnV6J8KL7k5KYptpw== X-Received: by 2002:adf:9cc4:0:b0:2bf:b837:a274 with SMTP id h4-20020adf9cc4000000b002bfb837a274mr813274wre.104.1675083123875; Mon, 30 Jan 2023 04:52:03 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:ee4b:0:b0:298:bd4a:4dd9 with SMTP id w11-20020adfee4b000000b00298bd4a4dd9ls1446122wro.1.-pod-prod-gmail; Mon, 30 Jan 2023 04:52:02 -0800 (PST) X-Received: by 2002:adf:a11e:0:b0:2bf:e9dc:5536 with SMTP id o30-20020adfa11e000000b002bfe9dc5536mr4268589wro.45.1675083122569; Mon, 30 Jan 2023 04:52:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675083122; cv=none; d=google.com; s=arc-20160816; b=ewIVqzak76Cto/QEKEj72HpS4HhFD/MYqi4CGVOfXUq10lMyvJGLybAKl1xxnfzLdQ PLdQ/Ho4ZwclCmfgBSsLQoPzk1aOH9mTIF7dnMFtdf9nnz09NMbEp6QI2JD5fZxlJXzM vlbAFfHAGNHP7sBMjNcyrDQJwU+1B8+vvDv8pHnE8zeC4qjhL4N5g4ApzhRkNxqUC3qH LzXYKp9ooi/5aRBD7U3wXXnSl3kxuGv7ybNXZfL7mevsG8s4WHqqV183wxtilpXKX3pt 0NxcftPvnRumRmL5TdVZFyGetTZVsZY8nSo37gxA+F9ccEi3aPgpHmDa9dhHpha2srsg 3qMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=KTmtA2nnpT4ZDRIVJ+OPmVVLI2rJ28UXNudput9q0DE=; b=WHOalVuJgi0QwonR8x05GIo1kU9c6NyyvL5bZ+aRATE6ct1b7Mx83Qw7XIAzNDnySq 0X17L0MjXd7fqFL5y9+F55R2CVgph7i67KbBPy/Hht4hlaOnd15iqVA2hgqNRxzFgmP/ 9RTABNCdkpGCtAsbMKiKB4aE4ZPrqJd0OLj/kxSRpf/YIAI1KnEFZ3Go2jjmss/NxP4v PLRDMQttAOEU7GZBWG9uarTBKPbSlqkIjUDiUhz+a9LJZE8oL/ITSpT0Sb3Xj8Cw9YxB OJbTNSoyh+ZEIVJFDdMPapsn6o4ZX3Lpb0enc48Tb4sOE98SCbHTo1wOIYiNwgUSzy79 F9Yw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of roberto.foglietta@linuxteam.org designates 2001:4b7a:2000:18::167 as permitted sender) smtp.mailfrom=roberto.foglietta@linuxteam.org Received: from relay06.th.seeweb.it (relay06.th.seeweb.it. [2001:4b7a:2000:18::167]) by gmr-mx.google.com with ESMTPS id m18-20020adfdc52000000b002bfc35954dasi614701wrj.7.2023.01.30.04.52.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 04:52:02 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@linuxteam.org designates 2001:4b7a:2000:18::167 as permitted sender) client-ip=2001:4b7a:2000:18::167; Received: from localhost.localdomain (unknown [IPv6:2a02:8071:3187:7b80:8e08:83d9:3ec2:cbf4]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id CAAD93F20C; Mon, 30 Jan 2023 13:52:01 +0100 (CET) From: roberto.foglietta@linuxteam.org To: isar-users@googlegroups.com Cc: roberto.foglietta@gmail.com Subject: [PATCH] do_bootstrap if {HOST,ROOTFS,DISTRO}_ARCH is not set warns Date: Mon, 30 Jan 2023 13:51:58 +0100 Message-Id: <20230130125158.2150684-1-roberto.foglietta@linuxteam.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Original-Sender: roberto.foglietta@linuxteam.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of roberto.foglietta@linuxteam.org designates 2001:4b7a:2000:18::167 as permitted sender) smtp.mailfrom=roberto.foglietta@linuxteam.org Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: "Roberto A. Foglietta" isar-debootstrap, do_bootstrap(): configuration warning added These variables determine which debootstrap command to use because in the general case the qemu-debootstrap should be used but it is a slower choice when the host/target architectures match. This is obviously managed by ISAR but the machine configuration file set by the user could miss to properly set one of these 3 values. So it is necessary to warn about unless the ISAR layer will properly fix the user shortage. Also, the day the ISAR layer will correctly address any lack, a double-check reminder/warning would be useful because fixed things could be broken again in the future. Signed-off-by: Roberto A. Foglietta --- meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc index faba73fe..5afe49b6 100644 --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc @@ -291,11 +291,15 @@ do_bootstrap() { sudo rm -rf --one-file-system "${ROOTFSDIR}" deb_dl_dir_import "${ROOTFSDIR}" "${BOOTSTRAP_BASE_DISTRO}-${BASE_DISTRO_CODENAME}" + if [ "${BOOTSTRAP_FOR_HOST}" = "0" ]; then + test -z "${HOST_ARCH}" -o -z "${ROOTFS_ARCH}" -o -z "${DISTRO_ARCH}" && \ + bbwarn "*** ATTENTION *** BOOTSTRAP_FOR_HOST=0, DEBOOTSTRAP=${DEBOOTSTRAP},"\ + "HOST_ARCH=${HOST_ARCH}, ROOTFS_ARCH=${ROOTFS_ARCH}, DISTRO_ARCH=${DISTRO_ARCH}." + export arch_param="--arch=${DISTRO_ARCH}" + fi + sudo -E -s <<'EOSUDO' set -e - if [ "${BOOTSTRAP_FOR_HOST}" = "0" ]; then - arch_param="--arch=${DISTRO_ARCH}" - fi ${DEBOOTSTRAP} $debootstrap_args \ $arch_param \ ${@get_distro_components_argument(d)} \