From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 30 Sep 2026 12:42:21 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f61.google.com (mail-wm1-f61.google.com [209.85.128.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 68UAgLQN026316 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 30 Sep 2026 12:42:21 +0200 Received: by mail-wm1-f61.google.com with SMTP id 5b1f17b1804b1-4a0037a1c05sf30586805e9.2 for ; Wed, 30 Sep 2026 03:42:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1790764936; cv=pass; d=google.com; s=arc-20260327; b=XWzY2LOTLSRTGEITzsQ+K6graMxp/I3vbYrb9o/fnnLAmgl0FM7/b/3ZAudAUvPUjY D/+4WFjeJhWBSqDkZV4BffDs4REuTXYIrHb5xNUhOlYQnHgO5xFlIGOXGZy8m4s0tBQK CApEbgAwtZwsLK+NfhGRc7mPY6skavjD234sai9jj/9Gl1CJY2GOdbtmWkKmsQQrwem2 II5BqwCc6aqFBbIJGZRJKP/m5BcxRk02/aGh1kmgdG/Cy6dFR7QVJjRtMp7w/vWLrsiF XR9h+CgfqaMl8o/0Yc/FT/fI+r/4h+SoB7hPy6q1pdR8bpnl5VLP3SFIp1SQygvSMxHB EUaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=PgkMQvS6K/k8kpe4DX3FHy8BxRyT7S9g6aIyHXqbZYM=; fh=qhBnlP6x/TH7OyDYjyChJLstsTq9g5M8ccSDzJe7+KI=; b=LDZhx6pNiHAENZhPF7h0TpnzM5GkuF4ML6Df2AxvDobP+eUwwaRVb/c2tvl8T1ZPJB Xe9cIZhVqj4qC+N+9nwF7rORysdj7FXR3fTpXrrWE2+O1XnrNaoAw1uACq48dmmNsBVc bQTULuo57+HsDB3U9QhCoXAhftO0yph3nZyqaENLeJf0fc2GhumNSnyE/uo7MGpKO9F7 S7J1IwkQf6tPcMCKtpdsoc55kQn4ETFaztsLuS/KHiTzIASkB5D2fvVbr3auxJYJCB3H jLqE9CZPkg/I0YedoWaEl2GtARSN2Xx+bgZzYIEQwweATaQLUeXnvxpe+k+gOLwDtG6C UvuA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1790764936; x=1791369736; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:content-type:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to:content-type; bh=PgkMQvS6K/k8kpe4DX3FHy8BxRyT7S9g6aIyHXqbZYM=; b=JWGEPnPYaXIqLqMs58fe4+WDXnoi3lfEhc81gmljObg3ZYZjuHFWRETyIAWRTG6DTc 1d5YdH1Dwf/fhN/LSO/h5SB6YRNYpl87PjThq0vVjmhLBO+pBHUhFZjSwLoetWekpZT4 aEVPhd3s8M2Pplr0DFrQPf3wTdtHOWzU0VaU++XqiLU8ThGszu1gc+K+OoYyFopBFFRZ fRNXIoxTOqnl4LueeCR7Da06tX8A21llzEHiuYaepi8aXOkNKv+wk5SSVCfXgW1Z7uaX VrHga8bfCpL9hJjslm2qCSjSkXe41ik7ZO9PK6I5OZzTXYoHfL+LrnpT/PfyfkUMg0bW VB0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790764936; x=1791369736; 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:content-type :in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to:content-type; bh=PgkMQvS6K/k8kpe4DX3FHy8BxRyT7S9g6aIyHXqbZYM=; b=qAIxuRHVF4+cb9f933rRbB7TEGuy9eOyk2uDL1DON9suf5qF/Vgsgxi+V/Ls+DMimL +Af9SWTLXkNXdyTeOuT9u89UjdsC2+pAly2WiPFKktTj+ldA+nWy56N+KlbEj2T8Fzxb jNbT+XYd7Yftd7fvnhh7FTGt+RxBS2hNpFMXBcakMtrseg8BHjgAdKSWhpOjuy86fl5c OmY2T/kBCVVQu6cL9JOzlp1kMp0TwL7h7AUt0NcOAlq1xkOMBq7mVP/TQ4WfmPw0Oesq Vmf1jOOSkdfQPahApnTjKFYUU9NR+zpTg/uMgtmgK06NsweGyAhTXaUKjmaAUbxORNDM gtvw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AKwUvByOnZL4XWlItTjzv5aH7kMTU+X+/EEgigiZhsfDJToDriZL0TITODAfU1uK+VROY6lpXMuc@ilbers.de X-Gm-Message-State: AFuF++k9G2pZkGspiZ2c+H8mNwNl2WlDP85iOQLp0/KAK/D0ha60ubzs buuxJujKNT/Q/dU+6we9uxZY1iRt/07kfIG0HHpy+OVKDBLPVUxnAWGw X-Received: by 2002:a05:600c:c162:b0:49c:fc6e:8cbd with SMTP id 5b1f17b1804b1-4a01b13606dmr15409155e9.33.1790764935527; Wed, 30 Sep 2026 03:42:15 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ATskLde1x95vPo8wLEQKULCCq7+5by95cssOzP4SeAMHkvk20g==" Received: by 2002:a05:600c:8b53:b0:49e:7a99:2b12 with SMTP id 5b1f17b1804b1-4a00a6b09d0ls19681245e9.0.-pod-prod-07-eu; Wed, 30 Sep 2026 03:42:11 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBxPf6ykTkKwDzSUq1SIyNgaboJN8c4oW2OWSSA1MPQiTxoVZYSEg2GUBmZJ4JYyJ2iZeNmrAcO4NEzN@googlegroups.com X-Received: by 2002:a05:600c:4514:b0:49f:cbf1:e77b with SMTP id 5b1f17b1804b1-4a01affe8dfmr16109175e9.10.1790764931607; Wed, 30 Sep 2026 03:42:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1790764931; cv=none; d=google.com; s=arc-20260327; b=dqSQuz1YmDYsAVvtHw6Bkk91UE9B9VL7aeT6QcZF1I2lggAqLnhZEK+YphxliKuZBx heW9g1foRExpo7Ts5EmxA15UPogODnY8DbH6RJ7HEqfvc2oMUofiSQEF+HSUOwaQo3H7 zOrTrZZmTVtHFpqXixR4/ozv/co4kdmc/8j2Dz30Bfml3UHR9GoAvvIZ3PQ5FnjwpTSW xn6TfwIpg/UmIJgByhnN319A+px6KPypS+DEjEKNGijc3/v5PkRCxiRhRQ4TJNf2wDSj wqqtWgyF6AzXCUpqVAFm0ruKoebdaavIdnIIHEXYXiTGkVXZCC6qLYOruVZv5r5fUPwc +OyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=oPLduVBYM3S57Kp1xjoEKhyGHw0MlFPs7Ra0eq9dVq8=; fh=IF1bGxK9SKeXTAgxr7bs40fCANvMKJ395PraMev3s3Q=; b=b4ZpsUdoNXmJKIEfNdZrwkGae0xuuoDCfuN/R1hX1/R16HIpCGfIVaVID4lUD2zhHg IUs9BgRBe7V+f58stNM6liBgmmsVBRpGVEdcc7mVhp2j9uAUM2Mxkstjy6df1Z80Y4Xi 8KzDJ0g4eoc6Ygq9dyor6IHJoKaQ8JcIKTKf9d9BXdknZf8kalxJLlB++LzyAgUmCZRS DwA7holofV5hD1otsFGJttUmKAr8Qhd6zCN2PKP/9ZsgTMvfHt03tV6eI0RyQeFpo2LE uNWwYg/Ye+wPZccU7jU7jK8ot5dgTlmxCIoMqukjYu2D7NHmXBSX7hasok8Xfigg8K+l /Dqw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-4a018684a8bsi183585e9.2.2026.09.30.03.42.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Sep 2026 03:42:11 -0700 (PDT) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.139] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 68UAgA3k026308 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Sep 2026 12:42:10 +0200 Message-ID: <52ecea35-159a-4be9-ba84-34d188bda79c@ilbers.de> Date: Wed, 30 Sep 2026 12:42:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 0/8] Add support to cross-compile a dracut initramfs To: Felix Moessbauer , isar-users@googlegroups.com Cc: quirin.gylstorff@siemens.com, jan.kiszka@siemens.com References: <20260925073042.1737353-1-felix.moessbauer@siemens.com> Content-Language: en-US From: Zhihang Wei In-Reply-To: <20260925073042.1737353-1-felix.moessbauer@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed 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: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@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-TUID: gChZgYgom0Lh Applied to next, thanks. Zhihang On 9/25/26 09:30, 'Felix Moessbauer' via isar-users wrote: > Not a trivial change, but one that really pays off: On some real-world > (non native) use cases the initrd generation takes more than 10 minutes. > This is due to emulating the ldd, as well as the cpio and compression > stages. With initramfs tools or the initramfs-tools wrapped dracut, we > don't see any possibility to significantly speed up the process (and > cross-building is also not supported). However, with direct invocation > of dracut, cross-compiling the initramfs becomes feasible and significantly > faster (on some cases more than 5x). This is especially relevant for > initrd-only images, where the slow build times are already a blocker as > of today. > > In combination with host-apt based package installation (not part of this > series), this can cut the overall buildtime by a factor of 3x or more. > > Note, that isar-cip-core will soon profit from this change as well, as > they plan to switch all initrd scripts to dracut. > > Changes since v2: > > - correctly unmount the host-tooling chroot (only relevant on privileged) > > Changes since v1: > > - make dependency to host tooling chroot more precise: > on external initrd bind it to the do_generate_initramfs task > on internal initrd bind it to the do_rootfs_install task > - rebased onto next > > No other changes. > > Best regards, > Felix Moessbauer > > Felix Moessbauer (8): > rootfs: generalize deployment of rootfs artifact > dracut-module: make module-setup compatible with sysroot > initramfs: move dracut logic to initrd-dracut class > dracut: use fixed log level on generation for progress reporting > dracut: enforce build of reproducible initrd > add host-tooling chroot for generic host tooling > dracut: add support for cross initrd generation > rootfs: stub both dracut and update-initramfs on dracut > > .../dracut-example-lighttpd/files/install.sh | 12 ++-- > .../recipes-initramfs/images/isar-dracut.bb | 4 +- > meta/classes-recipe/host-tooling.bbclass | 14 ++++ > meta/classes-recipe/imagetypes_wic.bbclass | 2 +- > meta/classes-recipe/initramfs.bbclass | 2 + > meta/classes-recipe/initrd-dracut.bbclass | 43 +++++++++++- > meta/classes-recipe/rootfs-deploy.bbclass | 30 +++++++++ > meta/classes-recipe/rootfs.bbclass | 39 +++++++---- > meta/classes/sbom.bbclass | 2 +- > meta/lib/rootfs_progress.py | 3 +- > .../dracut-cross-ldd/dracut-cross-ldd.bb | 16 +++++ > .../dracut-cross-ldd/files/dracut-cross-ldd | 65 +++++++++++++++++++ > .../host-tooling-chroot.bb | 28 ++++++++ > .../sbom-chroot/sbom-chroot.bb | 19 ++---- > .../sbuild-chroot/sbuild-chroot.inc | 30 ++------- > .../dracut-module/files/module-setup.sh.tmpl | 2 +- > 16 files changed, 251 insertions(+), 60 deletions(-) > create mode 100644 meta/classes-recipe/host-tooling.bbclass > create mode 100644 meta/classes-recipe/rootfs-deploy.bbclass > create mode 100644 meta/recipes-devtools/dracut-cross-ldd/dracut-cross-ldd.bb > create mode 100644 meta/recipes-devtools/dracut-cross-ldd/files/dracut-cross-ldd > create mode 100644 meta/recipes-devtools/host-tooling-chroot/host-tooling-chroot.bb > -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/52ecea35-159a-4be9-ba84-34d188bda79c%40ilbers.de.