From patchwork Tue Dec 6 23:10:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Roberto A. Foglietta" X-Patchwork-Id: 2273 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 07 Dec 2022 00:10:49 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-vk1-f184.google.com (mail-vk1-f184.google.com [209.85.221.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 2B6NAmc6003506 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 7 Dec 2022 00:10:48 +0100 Received: by mail-vk1-f184.google.com with SMTP id v18-20020a1f2f12000000b003b6a70630besf7263840vkv.12; Tue, 06 Dec 2022 15:10:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670368242; cv=pass; d=google.com; s=arc-20160816; b=fHO0E0DjJ1ITP2T8nmcm1OI5/AitF3eOtoJi9ykV7apUvn6rtuX1R23kCyMYQDr6re gt/0GD8q20LGQoik70GAKplpZF0dsPDWetBEx+Xblsjd4gXsd7yRh2FNFvkETQBG5iK5 xdXdP7s3jYZTuQNrlfmc3AvbU+5sYGza6eboW9divtGDyvX8xHm0QyFXbt8HaEN475oh dwU3/6qY25qzi2xQImTp2ER+btIdUZf9kVQSDVTYEneZ/Y3YfnyrGUdq/3kzbb8MC7nb K7KHbSoZXziyT5/PpSgA7rc0PFMbbxlSMK1i+ieuONNZxWyxPJpxMzutD36csyk86TI7 EW3g== 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:to:subject:message-id:date:from :mime-version:sender:dkim-signature:dkim-signature; bh=kU8X+Yd25uc2cHqqqpsUY/sc37cz0UT7GafNimhz2AI=; b=dEsmxw3Rkd961XT104RglvE/gny57E9FmYth8AaS2cGRJw6dXx9Cpqys1detJoDVPG 0eRx5Ve8O5vH6V1/xC+0ay4h7TWtKfklU1GRUKhzGTIszJBhE+vrfaj86gab3GHmYzv0 03oS9zOvVqORTOlZvxf10NdhFQZuY3hoptS0dcPV9/ilhQ1hkXL2z2Gx8t9Y0hverpLf hveaDPxeEyBWvNH7f6bXuZP/NfFAc0SUX6WPo9TfJ30urQPSR5i4Zb3Hxa9WwVnV5TlW srD3RxzOqVgqhS+Mlvc+em1a7hGvX49+CZw9Y3efG+4IUz7HQhKnlzUfBYW240lMLnst 6N+Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MTQ0wewC; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::82a as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:to:subject:message-id:date:from:mime-version :sender:from:to:cc:subject:date:message-id:reply-to; bh=kU8X+Yd25uc2cHqqqpsUY/sc37cz0UT7GafNimhz2AI=; b=WxRZHsCG2reoI/VyhqCPfFkyOqqinhiwaMMx3Tm6kVMou+RMC4UupgPCZqtl3sSMdc pAYeRCa0RVf1IeMD0dVVtgb8S2hjILWk/Jgc8N+hPK29yXzgOGsdLbb9tQ2TVKbb/CCq r5O8UHSetoYtkPVg3WPPiAN4sDRXTRMKgoywzwe35MEHSMLT2GS+MW7jSBkY9iHCANpj fq/lkYMUSacKBuzNtKHXU3+DNoRWZxcCqG8gahZocIuhrv8zj7Xdf3+3SXiuODksw8Xs 1DPL/r0yrUTXD3HTWSA9HHKOJ2Ja5SryNLuv0JVFCgEB726SipxCs2KEHNlGv9JLV3gv PGmQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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:to:subject:message-id:date:from:mime-version:from :to:cc:subject:date:message-id:reply-to; bh=kU8X+Yd25uc2cHqqqpsUY/sc37cz0UT7GafNimhz2AI=; b=YvglLaXRArxCEFj0y5Dxfi99AFqTGv8dodmDi3xQNai+NFsDG7NjJdMAiGGJyzDQj8 SKjUVNFyM5eLcAZq8t4G+w88IiwBEnHg0uLkvP4BKnMAr/ws/dDBZ6pf8NBRlmXiREb7 WAD4+eDKNKRjc3u2qdk7761Rl64BKlo8MrCVO6USzDmYqK9GBl0eCU/6CKKjs8t+bnAS bFi6pThDMpBsgfTOwf1qg57oVBuF+L5K/VsIVWDeh3AxJZWqe0f/Lm2+GQrzD7QCB9Jc kX6YSHbrY1FvDgms9Z+sza0ENDvLTGIM0kVYAy5qQN4u+UaszMh93agL5fjVF5fb+vE9 CdbA== 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:to:subject :message-id:date:from:mime-version:x-gm-message-state:sender:from:to :cc:subject:date:message-id:reply-to; bh=kU8X+Yd25uc2cHqqqpsUY/sc37cz0UT7GafNimhz2AI=; b=uJWE+dxsuGPGZDNd8t37VnlMB6yNBiv/cw9mIz2u9MbtXq3966QlTv4Nslyot6rbai msErJbo7y3BROvT+XsZghf6fTvSl1xle4TDZHG5Yy4fSi3VMrS9sP+/8NEWm1FPTEbIt GTCFzV+b/d8+zJToCa62TxYLAVt/6KodM7N/fH9RYE0IqzD9pxqVwdFQ2w3MrU1AFPCq ORbY25UdJYx1e3UmQHysXOQO3UWOHjCCGitZqhWgDMWj9SdxcrbcjUksEY+L102jmMyx gWhI2CcjK3ys4j9XDp3OnB05PZG8/Ezi9Lfj2hgqk6wbxZljs9Djg4rsumVYRWT5zZ3L Fy4Q== Sender: isar-users@googlegroups.com X-Gm-Message-State: ANoB5pmaBICr2bnQQIUWrq9kZeJcFiYsieNnk62inpn3XYOWP2/JYo5a l4YWXVcmYAxymL8Jci7KS3Y= X-Google-Smtp-Source: AA0mqf5Wk5ER8qvE7P8odGkgN40nep8dCP5gyaoW8IwUzJHyeV+wP5Nc7z69X5Z6DVbrACOsllUx0w== X-Received: by 2002:ab0:7c54:0:b0:419:23f:5481 with SMTP id d20-20020ab07c54000000b00419023f5481mr31967492uaw.22.1670368242491; Tue, 06 Dec 2022 15:10:42 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ab0:105b:0:b0:418:d23c:2e13 with SMTP id g27-20020ab0105b000000b00418d23c2e13ls36386uab.6.-pod-prod-gmail; Tue, 06 Dec 2022 15:10:41 -0800 (PST) X-Received: by 2002:ab0:6cb1:0:b0:419:2452:150b with SMTP id j17-20020ab06cb1000000b004192452150bmr24938858uaa.20.1670368241592; Tue, 06 Dec 2022 15:10:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670368241; cv=none; d=google.com; s=arc-20160816; b=MTbZ6wgV4ITDG9F7IQLsNp4+6/FuDFtxbSEAEQHJtgA3vKofx0RUDLBYr449x3qau/ J2w5yGVMw/1B7nGIbNFtEqZ6o6tVEcffbkaPQCWtaq8R1baSCM2lPyZiOGbG17iNHvbi GT0K/J+WD9TjqG05GKlZ9fA5IGLVZ59OKAgnuH3e72YaHClInYcTqPlY8LmQZs1j6K3o 7plX3rJtOiNvNV/HWcV0qg6QACq5bLKjKTzQQCUi8KbcqL/NHqx0e757g6OEV7qwnGCu AOe1Lxaa14aWl5XClNlpI7MVlq9GI1GkLKoMbEtfuzcKpQEXE6jl4qtrsVZ5++8X8iac GXGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=mY/egAADe1HcUln5sS/KDohN8UMeUaQJAOmiek7P9qI=; b=K/HutFIyO9m04+V4ojKQVF28W5F/LTGjXx05SUVS8CGALj1e7EkDeewU/lrG6MRIxN G8C51/Qfxdwi8JaMOhk7NSjHP/qDhH0RbGGLykN7kLuzbYcfd4wg0htvtSd3gaCITL9k /Hvojd99NFhX9uUsXAaYPNkqr2VyE36sK6CSK9vrwvp+EE4o50JC9o+oFOd5Uzt4U/Xj 24Gr1SzKDUv+d+XMiu2VS3mqE7oCp5UxCupvXHagpkXa6sOqZrQ5FY2O5S0NwsBhA+XE e57QoOTrsrcSxKd7igQF0IRuIbBHT6lDMUxAS/1BL5VPTB7VcoFjSeDkAaND/LWsV6Z6 BUQQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MTQ0wewC; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::82a as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com. [2607:f8b0:4864:20::82a]) by gmr-mx.google.com with ESMTPS id u7-20020ab03c47000000b004192f334e13si2180215uaw.2.2022.12.06.15.10.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Dec 2022 15:10:41 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::82a as permitted sender) client-ip=2607:f8b0:4864:20::82a; Received: by mail-qt1-x82a.google.com with SMTP id jr1so15012115qtb.7 for ; Tue, 06 Dec 2022 15:10:41 -0800 (PST) X-Received: by 2002:ac8:4d04:0:b0:3a7:f283:43cc with SMTP id w4-20020ac84d04000000b003a7f28343ccmr361001qtv.467.1670368240984; Tue, 06 Dec 2022 15:10:40 -0800 (PST) MIME-Version: 1.0 From: "Roberto A. Foglietta" Date: Wed, 7 Dec 2022 00:10:04 +0100 Message-ID: Subject: [PATCH] Rebuild after cleaning does not work anymore, bugfix v2 To: isar-users@googlegroups.com X-Original-Sender: roberto.foglietta@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MTQ0wewC; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::82a as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 86db16c6fe44876ae63fa89c9f25b92f2d3cb34d Mon Sep 17 00:00:00 2001 From: "Roberto A. Foglietta" Date: Tue, 6 Dec 2022 23:55:00 +0100 Subject: [PATCH] Rebuild after cleaning does not work anymore, bugfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bugfix, image and rootfs classes, fails in rebuilding - rebuild after cleaning does not work anymore but it is required to remove manually all the directories and this would take longer to rebuild. This patch fixes this new wrong behaviour which happens when the kernel is not compiled but installed. Reproducibility: this sequence of commands does not work anymore kcbuild ./kas-container --isar clean XOR/AND sudo ./kas-container clean kcbuild It fails with error while the following still works kcbuild sudo rm -rf build/tmp build/sstate-cache kcbuild but it takes more time than the previous when it was working. Signed-off-by: Roberto A. Foglietta --- meta/classes/image.bbclass | 9 +++++---- meta/classes/rootfs.bbclass | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) From 86db16c6fe44876ae63fa89c9f25b92f2d3cb34d Mon Sep 17 00:00:00 2001 From: "Roberto A. Foglietta" Date: Tue, 6 Dec 2022 23:55:00 +0100 Subject: [PATCH] Rebuild after cleaning does not work anymore, bugfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bugfix, image and rootfs classes, fails in rebuilding - rebuild after cleaning does not work anymore but it is required to remove manually all the directories and this would take longer to rebuild. This patch fixes this new wrong behaviour which happens when the kernel is not compiled but installed. Reproducibility: this sequence of commands does not work anymore kcbuild ./kas-container --isar clean      XOR/AND sudo ./kas-container clean kcbuild It fails with error while the following still works kcbuild sudo rm -rf build/tmp build/sstate-cache kcbuild but it takes more time than the previous when it was working. Signed-off-by: Roberto A. Foglietta --- meta/classes/image.bbclass | 9 +++++---- meta/classes/rootfs.bbclass | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 813e1f3..d5c173b 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -346,17 +346,18 @@ DTB_IMG = "${PP_DEPLOY}/${@(d.getVar('DTB_FILES').split() or [''])[0]}" do_copy_boot_files[dirs] = "${DEPLOY_DIR_IMAGE}" do_copy_boot_files[lockfiles] += "${DEPLOY_DIR_IMAGE}/isar.lock" do_copy_boot_files() { - kernel="$(realpath -q '${IMAGE_ROOTFS}'/vmlinu[xz])" + set -x + kernel="$(realpath -q '${IMAGE_ROOTFS}'/vmlinu[xz] || true)" if [ ! -f "$kernel" ]; then - kernel="$(realpath -q '${IMAGE_ROOTFS}'/boot/vmlinu[xz])" + kernel="$(realpath -q '${IMAGE_ROOTFS}'/boot/vmlinu[xz] || true)" fi if [ -f "$kernel" ]; then sudo cat "$kernel" > "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE}" fi - initrd="$(realpath -q '${IMAGE_ROOTFS}/initrd.img')" + initrd="$(realpath -q '${IMAGE_ROOTFS}/initrd.img' || true)" if [ ! -f "$initrd" ]; then - initrd="$(realpath -q '${IMAGE_ROOTFS}/boot/initrd.img')" + initrd="$(realpath -q '${IMAGE_ROOTFS}/boot/initrd.img' || true)" fi if [ -f "$initrd" ]; then cp -f "$initrd" '${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE}' diff --git a/meta/classes/rootfs.bbclass b/meta/classes/rootfs.bbclass index d19ac03..0d16754 100644 --- a/meta/classes/rootfs.bbclass +++ b/meta/classes/rootfs.bbclass @@ -33,6 +33,9 @@ rootfs_do_mounts[weight] = "3" rootfs_do_mounts() { sudo -s <<'EOSUDO' set -e + for i in dev/shm dev/pts proc sys; do + mkdir -p '${ROOTFSDIR}/$i' + done mountpoint -q '${ROOTFSDIR}/dev' || \ ( mount -o bind,private /dev '${ROOTFSDIR}/dev' && mount -t tmpfs none '${ROOTFSDIR}/dev/shm' && -- 2.34.1