[PATCH] kas: add dracut option to menu

11 views
Skip to first unread message

srinuv...@siemens.com

unread,
Nov 16, 2025, 5:07:46 AMNov 16
to isar-...@googlegroups.com, quirin.g...@siemens.com, srinuvasan
From: srinuvasan <srinuv...@siemens.com>

Debian announced that starting from forky, Dracut is the default
tool for generating the initramfs, this change adds an option to build the initramfs using Dracut

By default, the initramfs is generated with initramfs-tools
Append kas/opt/dracut.yml to enable initramfs generation with Dracut.

Signed-off-by: srinuvasan <srinuv...@siemens.com>
---
kas/opt/Kconfig | 10 ++++++++++
kas/opt/dracut.yaml | 10 ++++++++++
2 files changed, 20 insertions(+)
create mode 100644 kas/opt/dracut.yaml

diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
index 3fa57f87..fbf098de 100644
--- a/kas/opt/Kconfig
+++ b/kas/opt/Kconfig
@@ -194,3 +194,13 @@ config KAS_INCLUDE_CACHE_DBG_PKGS
string
default "kas/opt/cache-dbg-pkgs.yaml"
depends on CACHE_DBG_PKGS
+
+config USE_DRACUT
+ bool "Use dracut to generate the initramfs"
+ help
+ This feature enables generating the initramfs using the dracut tool
+
+config KAS_INCLUDE_USE_DRACUT
+ string
+ default "kas/opt/dracut.yaml"
+ depends on USE_DRACUT
diff --git a/kas/opt/dracut.yaml b/kas/opt/dracut.yaml
new file mode 100644
index 00000000..6d245ffb
--- /dev/null
+++ b/kas/opt/dracut.yaml
@@ -0,0 +1,10 @@
+# This software is a part of ISAR.
+# Copyright (C) 2025 ilbers GmbH
+
+header:
+ version: 14
+
+local_conf_header:
+ dracut: |
+ IMAGE_PREINSTALL:append = " dracut"
+ IMAGE_INSTALL:remove = "enable-fsck"
--
2.39.5

Zhihang Wei

unread,
Nov 26, 2025, 4:43:18 AMNov 26
to srinuv...@siemens.com, isar-...@googlegroups.com, quirin.g...@siemens.com
Applied to next, thanks.
Reply all
Reply to author
Forward
0 new messages