From: Zhihang Wei <wzh@ilbers.de>
To: Quirin Gylstorff <Quirin.Gylstorff@siemens.com>,
isar-users@googlegroups.com, jan.kiszka@siemens.com,
felix.moessbauer@siemens.com, cedric.hombourger@siemens.com
Subject: Re: [PATCH v7 00/13] Add support for dracut
Date: Wed, 12 Nov 2025 17:36:18 +0100 [thread overview]
Message-ID: <f764dbe7-c419-4e64-835f-a3d67f3b2c98@ilbers.de> (raw)
In-Reply-To: <20251105121350.114449-1-Quirin.Gylstorff@siemens.com>
Applied to next, thanks.
There was an extra space in front of tab in lighttpd.conf from patch v7
12/13,
caused warning when applying the patch. I have fixed it and replaced
tabs with
spaces.
Best regards,
Zhihang
On 11/5/25 13:12, 'Quirin Gylstorff' via isar-users wrote:
> 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 v7:
> - move from classes to classes-recipe
>
> Changes v6:
> - 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-recipe/dracut-module.bbclass | 87 +++++++++++++++++++
> meta/classes-recipe/initrd-dracut.bbclass | 58 +++++++++++++
> meta/classes/initramfs.bbclass | 19 +++-
> 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-recipe/dracut-module.bbclass
> create mode 100644 meta/classes-recipe/initrd-dracut.bbclass
> create mode 100644 meta/recipes-initramfs/dracut-module/files/module-setup.sh.tmpl
>
--
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/f764dbe7-c419-4e64-835f-a3d67f3b2c98%40ilbers.de.
prev parent reply other threads:[~2025-11-12 16:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-05 12:12 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 01/13] Add dracut to custom kernel builds 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 02/13] rootfs: Allow to overwrite the initramfs generation cmds 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 03/13] rootfs: Add isar-work directory to rootfs mounts 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 04/13] rootfs: Copy the newly created initrd.img to the work directory 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 05/13] rootfs: Add dracut to initramfs generator 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 06/13] rootfs: exit immediately if INITRAMFS_GENERATOR_CMD fails 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 07/13] initramfs: allow to set the generator command 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 08/13] Add class to generate custom dracut initramfs 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 09/13] rootfs: add flag to use dracut if it is not part of the package list 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 10/13] Add example dracut initramfs 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 11/13] Add dracut module helper 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 12/13] Use lighttpd as a example how to add a dracut module 'Quirin Gylstorff' via isar-users
2025-11-05 12:12 ` [PATCH v7 13/13] user_manual: Add dracut for initramfs generation 'Quirin Gylstorff' via isar-users
2025-11-12 16:36 ` Zhihang Wei [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f764dbe7-c419-4e64-835f-a3d67f3b2c98@ilbers.de \
--to=wzh@ilbers.de \
--cc=Quirin.Gylstorff@siemens.com \
--cc=cedric.hombourger@siemens.com \
--cc=felix.moessbauer@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox