| Message ID | 20251105093710.19582-1-Quirin.Gylstorff@siemens.com |
|---|---|
| Headers | show
Return-Path: <isar-users+bncBCZO5JXOOYINFNNMZADBUBESJTZNE@googlegroups.com>
Received: from shymkent.ilbers.de ([unix socket])
by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA;
Wed, 05 Nov 2025 10:37:30 +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
5A59bSZp016510
(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
for <iupwgm@isar-build.org>; Wed, 5 Nov 2025 10:37:28 +0100
Received: by mail-wr1-f60.google.com with SMTP id
ffacd0b85a97d-429be5aeea2sf2741019f8f.2
for <iupwgm@isar-build.org>; Wed, 05 Nov 2025 01:37:28 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1762335443; cv=pass;
d=google.com; s=arc-20240605;
b=S+6t7xxdwof4qa7L1oB8iqJYV1VeLYM48XhxMv+9hQULuzvuq+3AraIN1FKNRwnOzR
j3GIOiE98GDZGIxkU9L/ejGSTJ2eYcYz5e5Qovfw0pJV5/Yx/nZRN5oz7Nj1kUphdFha
poc4PMN8bAZVykQnpBu5gaxqOkCJZBgpB8y2ErlgasDKe/gDbMj+aRgIh1s6+p94PYCA
8k1060j3EeEFC7mA2ZbJZT5OAWH5m6LYnKU3ob58u+7/JP26jlAWKwfd29z9hlVORNHu
glAV5qfKGwlRx4rp7d5yugFekDfQgRcrdyDYvGNM/uN68oDdgQL1s1Bvb0lytByI8rwr
5C/w==
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:reply-to:feedback-id:mime-version
:message-id:date:subject:to:from:dkim-signature;
bh=2/7/WMmolR7sNS5qqBO284QQPndfRMLqh4SHNo3vGkU=;
fh=C1ukq6rEOZFEyTT1LGkBVoh0D92OqdGxAvoYLCsbZGU=;
b=lsh9pEXVoh+LNMEIyuF6bqQkaKPF83/NVBqiQTCwdhrmgZsfcAeQeeMEGacnq3I6ZN
24tGlSuFmtOt3opyp4AOvFQMatg20F+6IHDrTvdFjoRkJguCVW75U0TXhT3B7CobeKWU
H55KGUbTgLIroB9/8eSN76P1+PgCpUMAPuoKtqkrYNMaeRe7g4ro04cmhz6URaOwwvpT
wEAsADDaVK1+rqU96uKvvzUG0D36mYSga1yieRPUVL5JLmIk9LWlIYKsaOIRnv1VsmXr
TfpTXnO9f4wiEn1HpKfF20Gh5GofMJiFyc1+p1Bpn7OD5VJoZiu2oYGJ8oogXPYvvq2R
47GA==;
darn=isar-build.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
dkim=pass header.i=@siemens.com header.s=fm1 header.b=C0M+cIVh;
spf=pass (google.com: domain of
fm-51332-202511050937183230d4299100020766-9mqowk@rts-flowmailer.siemens.com
designates 185.136.64.227 as permitted sender)
smtp.mailfrom=fm-51332-202511050937183230d4299100020766-9mQowK@rts-flowmailer.siemens.com;
dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=googlegroups.com; s=20230601; t=1762335443; x=1762940243;
darn=isar-build.org;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:reply-to
:x-original-authentication-results:x-original-sender:feedback-id
:mime-version:message-id:date:subject:to:from:from:to:cc:subject
:date:message-id:reply-to;
bh=2/7/WMmolR7sNS5qqBO284QQPndfRMLqh4SHNo3vGkU=;
b=bsNMPCVhA+WD1kpN2NXGhTtg+7SQ2ljHL+eq4RYAQ5JsMkjXLM8tXbwuGZh3Aeg652
4T8ocWCVbipqbUrcC0nt6ABFdLxZlmKe/ZL4363HzTy9a3/KSjRzISpzQYYhi9gV4Gyr
7I+xEfe4qdlhGLa69+Oc5Cex5WnWiecgVZY4b6Pk2NckjSUYl/Cpr/IdqKAH/tvX0VIj
l+NwRKXaclEOUv/3IIrEbq51Zd4yFKlXgMq42/LN9DQzIOlflxxVAKSxA9U4PUSx+GRy
tpOwN1jPEO8UYzkRCESOjUbP65Ee1ClrBNXPcMDyUnB9gbOldGOclJqTAppkcX1rAGFn
VK4g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1762335443; x=1762940243;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to
:x-original-authentication-results:x-original-sender:feedback-id
:mime-version:message-id:date:subject:to:from:x-beenthere
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=2/7/WMmolR7sNS5qqBO284QQPndfRMLqh4SHNo3vGkU=;
b=KKXvLuCRHFu0/UyFuHgG0H0SkKpSmWOV2V+L83HKsCD4iibrKzoZrZNeOBFow2W7CO
3RuxtR1EGWqxf+ot4mdbNz2FHU396ggc0TCyR9XkNzdp67rRcy2x2WwoCJLjuSxtPm3q
f9oUpNqia8k0c9G5rRkz8BHW/0jEOEkeyq2ybwkwNsP+2O+UY4163+k4NpYQz4hkYL/6
oFqn0xkPbXIa7Ia/JRK6hZN8zwmAjIYpjgBUOI9WTfytOEmx4TovB2QljL2p0v9Rx6JC
MunWOpCAHSREYKFF2NPHsmYKqVe44voxDzjPMZ2DD0xsyNzhOh4Rw8Nmgrw6VyVwZ6mm
4wfQ==
X-Forwarded-Encrypted: i=2;
AJvYcCWuSu98YeBtIvPo1x2xx06RCPn8ITXh+GB9dJdLPgFqBpXRFvbzruPt9aIKVBiXCoc1rSmS2RU=@isar-build.org
X-Gm-Message-State: AOJu0YyE4i4j4wTcKi2aF+DCljvQegLr8+fM7uIcnCSKwlbBAY4lVOis
J27Vgx6qtIWr0jCtQoDx2xqo2RhF4CbqPhWFlwUsAuDr5F05w4DnAS8S
X-Google-Smtp-Source:
AGHT+IHtHWLRN3LhcTP600mx0/iZPIo3DNdXqGa0GNSCmOOY0k3og/SknD8ckPtZGGvpQkaA+zuSPg==
X-Received: by 2002:a05:6000:40db:b0:429:d11b:9ecd with SMTP id
ffacd0b85a97d-429e33138dcmr1921163f8f.57.1762335442811;
Wed, 05 Nov 2025 01:37:22 -0800 (PST)
X-BeenThere: isar-users@googlegroups.com;
h="Ae8XA+aPecv1ajw+mXS3y3QtDql8HdZv410yU8oiIcz6+54Fyw=="
Received: by 2002:a05:6000:290c:b0:426:cb20:6c35 with SMTP id
ffacd0b85a97d-429b4d9375als4012669f8f.0.-pod-prod-06-eu; Wed, 05 Nov 2025
01:37:19 -0800 (PST)
X-Received: by 2002:a05:6000:65c:b0:426:d820:a3f9 with SMTP id
ffacd0b85a97d-429e327517cmr1572266f8f.0.1762335439334;
Wed, 05 Nov 2025 01:37:19 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1762335439; cv=none;
d=google.com; s=arc-20240605;
b=YopySuuQunLezHcF088Q+3jr66mTra6udpVDg1hdcYheZHu1AmooSuuLev4L5Z9OwL
pwXQXeY/2n+/CR31HqukiWjhKSDDi/qEh4tfSlj8nxEgsscXHjQjJbOcULBWd4hTzM3F
jYRxkigCuBRoQ2nRv9CnN0OzjYrqFm7O1Svkcvm5+ynDECkKLIw4Cg9bLGiicL7KS/Ub
Js5p/UHVvZIh2r1DKjWdkS1VtuiZrNIYZ9C1996Ty4c1hGETzRfqm5Qf6fyrD6RbOUtf
VYQeWTkgPqpKV7Z/4vTWJrL+Ynl59tOkiH2QAQr7muxSCak/qKoADieC2NMmmOgleuFf
HHUw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=feedback-id:content-transfer-encoding:mime-version:message-id:date
:subject:to:from:dkim-signature;
bh=BLjGte9pEEM81lA9m+tlqROEjRX7DZ/l45ImxyHsugQ=;
fh=pD9NMAE6punlmxDz2SM7DMFwkWrKOHAvTYxfub7CxRs=;
b=KIAypc6y/LAzQ6so2kUfx19G2lfYGy9K2JmlBXaTJCnAeIt32Y9iT/raivP6pBU+f/
kpaQamI+6rIgBa/obQpUUIz4MwSyD6iED1Yd11zSFOtPDlY60rz6w0ClMtTFEis4BYLa
bdUE8fVnnXn4b7Qxfzwv54/ihXYsr7OWpsugs8BKMdqhUAiyxTUvB9jkmNX3hQVL7dBx
k8dy0UwwiwaHIHrPU6U9srNR+SJyo9Jps2ISiASNkUDnERNxIN/Z/9pl62tDnUxQhwyV
mvoNA5rxUcI3vnJH82G90vdKtFy7ADJlQp+NRkgLVVrxRccRy4fwWCRkuHV/QmROVI2P
SgHQ==;
dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
dkim=pass header.i=@siemens.com header.s=fm1 header.b=C0M+cIVh;
spf=pass (google.com: domain of
fm-51332-202511050937183230d4299100020766-9mqowk@rts-flowmailer.siemens.com
designates 185.136.64.227 as permitted sender)
smtp.mailfrom=fm-51332-202511050937183230d4299100020766-9mQowK@rts-flowmailer.siemens.com;
dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com
Received: from mta-64-227.siemens.flowmailer.net
(mta-64-227.siemens.flowmailer.net. [185.136.64.227])
by gmr-mx.google.com with ESMTPS id
ffacd0b85a97d-429dc1f3281si95523f8f.8.2025.11.05.01.37.19
for <isar-users@googlegroups.com>
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Wed, 05 Nov 2025 01:37:19 -0800 (PST)
Received-SPF: pass (google.com: domain of
fm-51332-202511050937183230d4299100020766-9mqowk@rts-flowmailer.siemens.com
designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227;
Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id
202511050937183230d4299100020766
for <isar-users@googlegroups.com>;
Wed, 05 Nov 2025 10:37:18 +0100
From: "'Quirin Gylstorff' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com, jan.kiszka@siemens.com,
felix.moessbauer@siemens.com, cedric.hombourger@siemens.com
Subject: [PATCH v6 00/13] Add support for dracut
Date: Wed, 5 Nov 2025 10:29:15 +0100
Message-ID: <20251105093710.19582-1-Quirin.Gylstorff@siemens.com>
MIME-Version: 1.0
X-Flowmailer-Platform: Siemens
Feedback-ID: 519:519-51332:519-21489:flowmailer
X-Original-Sender: quirin.gylstorff@siemens.com
X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass
header.i=@siemens.com header.s=fm1 header.b=C0M+cIVh; spf=pass
(google.com: domain of
fm-51332-202511050937183230d4299100020766-9mqowk@rts-flowmailer.siemens.com
designates 185.136.64.227 as permitted sender)
smtp.mailfrom=fm-51332-202511050937183230d4299100020766-9mQowK@rts-flowmailer.siemens.com;
dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com
X-Original-From: Quirin Gylstorff <Quirin.Gylstorff@siemens.com>
Reply-To: Quirin Gylstorff <Quirin.Gylstorff@siemens.com>
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list isar-users@googlegroups.com;
contact isar-users+owners@googlegroups.com
List-ID: <isar-users.googlegroups.com>
X-Spam-Checked-In-Group: isar-users@googlegroups.com
X-Google-Group-Id: 914930254986
List-Post: <https://groups.google.com/group/isar-users/post>,
<mailto:isar-users@googlegroups.com>
List-Help: <https://groups.google.com/support/>,
<mailto:isar-users+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/isar-users
List-Subscribe: <https://groups.google.com/group/isar-users/subscribe>,
<mailto:isar-users+subscribe@googlegroups.com>
List-Unsubscribe:
<mailto:googlegroups-manage+914930254986+unsubscribe@googlegroups.com>,
<https://groups.google.com/group/isar-users/subscribe>
X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?=
|
| Series |
Add support for dracut
|
expand
|
From: Quirin Gylstorff <quirin.gylstorff@siemens.com> Debian intends to change the default initrd generator from initramfs-tools to dracut[1],[2]. This is a first draft to support multiple initrd generator in ISAR. I tested it with bookworm and trixie. You can switch a normal Debian version to a dracut based initrd by installing the package `dracut`. This similar to a normal Debian installation. Customizing the initrd generation should be done with a seperate recipe which inherit `initrd-dracut`. This is intentionally done to avoid installing packages which are only used by the initrd generation process. [1]: https://salsa.debian.org/kernel-team/meetings/-/wikis/20250730 [2]: https://meetbot.debian.net/debian-kernel/2025/debian-kernel.2025-08-06-19.00.log.html Changes v6: - rebase on commit 666c5e571b46d9b3e34158163e74b4a89c89bfe7 - use class instead of inc - fail early if dracut generation fail Changes v5: - cleanup formatting - Add additional comments - Add isar-work mount point to the rootfs to copy the initrd to the workdir - make the build compatible with ubuntu - use the feature to derive the module name from the installed package Changes v4: - fix extra_modules and extra_drivers - extend user_manual to switch normal installation to dracut Changes v3: - drop initramfs patch - add examples - add user_manual section Changes v2: - extract the initramfs-cmd from the cmdline - increase version of enable-fsck - add function to print an error in case a invalid package is installed Quirin Gylstorff (13): Add dracut to custom kernel builds rootfs: Allow to overwrite the initramfs generation cmds rootfs: Add isar-work directory to rootfs mounts rootfs: Copy the newly created initrd.img to the work directory rootfs: Add dracut to initramfs generator rootfs: exit immediately if INITRAMFS_GENERATOR_CMD fails initramfs: allow to set the generator command Add class to generate custom dracut initramfs rootfs: add flag to use dracut if it is not part of the package list Add example dracut initramfs Add dracut module helper Use lighttpd as a example how to add a dracut module user_manual: Add dracut for initramfs generation doc/user_manual.md | 73 +++++++++++++++- .../dracut-example-lighttpd_0.1.bb | 44 ++++++++++ .../dracut-example-lighttpd/files/install.sh | 20 +++++ .../files/lighttpd.conf | 52 +++++++++++ .../files/lighttpd.service | 13 +++ .../files/sysuser-lighttpd.conf | 2 + .../recipes-initramfs/images/isar-dracut.bb | 25 ++++++ meta/classes/dracut-module.bbclass | 87 +++++++++++++++++++ meta/classes/initramfs.bbclass | 19 +++- meta/classes/initrd-dracut.bbclass | 58 +++++++++++++ meta/classes/rootfs.bbclass | 43 ++++++--- .../dracut-module/files/module-setup.sh.tmpl | 42 +++++++++ meta/recipes-kernel/linux/linux-custom.inc | 2 +- 13 files changed, 461 insertions(+), 19 deletions(-) create mode 100644 meta-isar/recipes-initramfs/dracut-example-lighttpd/dracut-example-lighttpd_0.1.bb create mode 100644 meta-isar/recipes-initramfs/dracut-example-lighttpd/files/install.sh create mode 100644 meta-isar/recipes-initramfs/dracut-example-lighttpd/files/lighttpd.conf create mode 100644 meta-isar/recipes-initramfs/dracut-example-lighttpd/files/lighttpd.service create mode 100644 meta-isar/recipes-initramfs/dracut-example-lighttpd/files/sysuser-lighttpd.conf create mode 100644 meta-isar/recipes-initramfs/images/isar-dracut.bb create mode 100644 meta/classes/dracut-module.bbclass create mode 100644 meta/classes/initrd-dracut.bbclass create mode 100644 meta/recipes-initramfs/dracut-module/files/module-setup.sh.tmpl