From patchwork Wed Jun 10 06:48:12 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Mikanovich X-Patchwork-Id: 5141 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 10 Jun 2026 08:48:31 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f55.google.com (mail-lf1-f55.google.com [209.85.167.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 65A6mUCu011065 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 10 Jun 2026 08:48:30 +0200 Received: by mail-lf1-f55.google.com with SMTP id 2adb3069b0e04-5aa68e50948sf3737960e87.3 for ; Tue, 09 Jun 2026 23:48:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1781074105; cv=pass; d=google.com; s=arc-20240605; b=CxFVeYHqHy3G7TU7PZm0pzip2pIaN3yhfegyeg43+WecsCN26RbkcAFtjqsX6epTHh 7J+hD564NLTBxF92j3gyr+VrsejtCBTaS/FZI80Do3Tu+MTYiIJEIKrfjsixWVum09h7 lvu3OGFMZ+apclgqe9nqJkkZ3X2nw64KjBbf/DEDj0gRXzU55PkdI2K1n36rRkV+Nnm5 vby0cUcp9K1PfzWYGZHyKrYlxZhjyowjIMUeW8P/z8LOp7Re1YDxOO7adL7hfQqH1I8l QAuhQ6ZogxKEqj962SSQM+/4iKB958fBxPGspxboNBB5hpwgyJyBDUK27I6oo6KVHqlQ DlUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=lrsHrCovKnrCG5GQMbOqlFIbsrbOv3OYzyBMXc8wGXc=; fh=2wl+hXONCbjoE+z+pufHgBlOYTtWSpDpKMott2wuWvM=; b=DnD8Mv28gCDXBCmbj4OhqTausMy6oA9lgsO14YzIGbGuaMd28ZYbjoNrvqixsaOmAL vhGlK1QuID/I3ndW8qomMhbmclIT07h/p9jN4D03is8eLaPXi2g9blHVaNHIWhw2k5++ WOk1vQJEKQcn5zY2/cGIQFWpjJjrq5H3oQuTKps6wgZH0KWawI7OLeC99xKSp2CJQRnU Og8QrppjwF1Rd4oU9irHiBLdgZbFh1J7LG/jLAj3402Tj7+/07ecRG+0N9wYbjRQGoxu 2oAmIsMv3qNaeCpRfLARSUTEqjdTno7o2xspph6S0uehYVmOth9Nsbf/w9d0M87ZShX1 Aq+g==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1781074105; x=1781678905; darn=isar-build.org; 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:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=lrsHrCovKnrCG5GQMbOqlFIbsrbOv3OYzyBMXc8wGXc=; b=JF8ENKd3z3iAgPUGHBQJQYDgYsFLtotI6cWqoSgsh1Lepo/2Of72rlJJX/N1i5qBZy /fUbZjyYkh5nuYSKWkdncFM6aZ/ozY3/y0pELHVOhc1rX8Hf8RStUgtS3w74ndZQ73O+ UjkfEOD/yXRy/8sAbaX+XdVGpn9SyiiV0FTrB1xe2GQ25mprgWJRlCQ9Kcf5jBXC/Ti6 wZHGewS89GwnyBDAs/PMOIUXUnbvpwIWnBu7lZPR0wxFOVZPrtFxpMQfS8i89v214zDr uWowTaPFzWjyh+Jee4CPRym/3AhUauu8E8HEvan2vT/p/HvbyTx/0HigbOTzluegY3Kc cCyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781074105; x=1781678905; 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 :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=lrsHrCovKnrCG5GQMbOqlFIbsrbOv3OYzyBMXc8wGXc=; b=a5zMHTVLdgw/+APQWozbc8bNzCPIdnRJygCmdnOyL73StxZfB0HZfz+dCR5nlChcqq vPSIhWF49bK0wE1CPyQOo8hG56FFN45blmT543afIa5S10xPJvX+e3zWSVfR2HNic+v6 ADpjonsEAD/vQzv/3W2xHz9zQzhC3FpLy2MTJdyPlGSUn+y/bw6lwKya711p+5Apk0b6 Qh6tmjmAUjQ2wbIKjWMzZSyqOGjN/AaYAZ3658fGIQnnH90CEFzvXDFGif3jO13ms7wT fYrSHJZVnT/g3n0QqNNklGHj/Ca6o/rEKUjLO9Lsg+3wQgkbLefy1f6EdulXTrq3wb2b kk5g== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AFNElJ+pseZxCalMJrlNmzHD773SXxThBqDYUwXmGzBge7Xeh8uo784Er2fksYSlmSy85RFgipnILOo=@isar-build.org X-Gm-Message-State: AOJu0YwRgmukZcfFoZUOdP+bF1W7rzdMTPY06YVFTA2o12omfMK2D7QR MCdV8XvAuLdw2gKkJ76Q89QKEE+cyVs1aWK9eUR/c2GfBF6AFYNBkB/X X-Received: by 2002:a05:6512:b90:b0:5aa:70be:5098 with SMTP id 2adb3069b0e04-5aa87b69dd4mr6894651e87.6.1781074104767; Tue, 09 Jun 2026 23:48:24 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="AX0PUUe+I1luJA1pcL2J9atwit0yy5hcGOiMbXxCeAEnPB1Xsw==" Received: by 2002:a05:651c:4398:20b0:396:8b17:3399 with SMTP id 38308e7fff4ca-3984e39ffa8ls2454021fa.1.-pod-prod-02-eu; Tue, 09 Jun 2026 23:48:22 -0700 (PDT) X-Received: by 2002:a2e:b8cd:0:b0:393:ba06:158f with SMTP id 38308e7fff4ca-396d09fc5b7mr68505811fa.16.1781074102550; Tue, 09 Jun 2026 23:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1781074102; cv=none; d=google.com; s=arc-20240605; b=Zi9b2G3oL4Uev658JmHwQ5aVxAxES77dnhFSnRPIerdygWiBcsyTlROMGGZc8MWy7E 9peQwntPjbm2kEL9REcQf3nnVEZJgUOmIbR8EwNMYIV+tjDH+f8UJSQg4iD0pOOxOPYg ftxfi5FZDPfrYhJjD0NoO5NkNf67X/QhD/5pwhvdyTeyLu1jG4miPFglKgyd6lfVAMRq cU8wwbx9kIparTVDFgWkcan4vc6wuY3KPZauoSRF3TMpb+oS3Pt1xkE8e9b4Stdz28aQ jleK5HMoNszadcFKJcJrwPYS1Lebm+ylf69wb6qplgb4fMJ+BBL2xMz4yBgUgXaWWMkl dn1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=QHMHAnVepUnQMeskZWIoEcxmBDXLzQilrMqb0kN6t9A=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=YR6MI6+CbTueKj2ZJuKOau1MSMYGfANaE3MDSEM1efiY5P0ubgtk3iEsHedy2qHmPS t7krKwE77o9Kk2VLPkLXUUT7itmwQ7y9LGcTBhgIG7Hlq4a714lhCxYwhcc3OPvwygKX mFa6jaOJbGOAhPpcm+73f/2IWgBd6YVbRYGtwWxA/Z70ljRhZgHaZ3tGl/7STKY2Gzwu zwhjQN3NoolpcJx9ycOKOko6obuF3It2mopq0RSx1pYcl8N5CPLeRp5XAGb5wF8m9D0t I3ShUBgQg3yK7rxKHGsj13q07ZvqzOYgu2NVRrrru7GH/XDmtis8cNX13GYbgdUBvKKs ghoA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-396ac206323si5115391fa.5.2026.06.09.23.48.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jun 2026 23:48:22 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from user-B660.promwad.corp ([159.148.83.123]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 65A6mIj2011003 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Jun 2026 08:48:21 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH 3/3] rootfs: Deny packages download during install Date: Wed, 10 Jun 2026 09:48:12 +0300 Message-Id: <20260610064812.4010511-4-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260610064812.4010511-1-amikan@ilbers.de> References: <20260610064812.4010511-1-amikan@ilbers.de> MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,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-Original-Sender: amikan@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= During the command rootfs_install_pkgs_install no actuall packages downloading should be done. All the debs must be precached and already placed in /var/cache/apt/archives, so apt-get can reuse them. Currently any downloads in this command are really succeed because we still have "network" flag on for using sudo, which masks all the caching issues in previous rootfs install commands. To prevent such a cases add "--no-download" option to apt-get. Signed-off-by: Anton Mikanovich --- meta/classes-recipe/rootfs.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-recipe/rootfs.bbclass b/meta/classes-recipe/rootfs.bbclass index 81384340..f4580421 100644 --- a/meta/classes-recipe/rootfs.bbclass +++ b/meta/classes-recipe/rootfs.bbclass @@ -402,7 +402,7 @@ rootfs_install_pkgs_install[progress] = "custom:rootfs_progress.PkgsInstallProgr rootfs_install_pkgs_install[network] = "${TASK_USE_SUDO}" rootfs_install_pkgs_install() { sudo -E chroot "${ROOTFSDIR}" \ - /usr/bin/apt-get ${ROOTFS_APT_ARGS} ${ROOTFS_PACKAGES} + /usr/bin/apt-get ${ROOTFS_APT_ARGS} --no-download ${ROOTFS_PACKAGES} } ROOTFS_INSTALL_COMMAND += "rootfs_restore_initrd_tooling"