* [PATCH] kas: add dracut option to menu
@ 2025-11-16 10:11 srinuvasan.a via isar-users
2025-11-26 9:43 ` Zhihang Wei
0 siblings, 1 reply; 2+ messages in thread
From: srinuvasan.a via isar-users @ 2025-11-16 10:11 UTC (permalink / raw)
To: isar-users; +Cc: quirin.gylstorff, srinuvasan
From: srinuvasan <srinuvasan.a@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 <srinuvasan.a@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
--
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/20251116101111.385313-1-srinuvasan.a%40siemens.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] kas: add dracut option to menu
2025-11-16 10:11 [PATCH] kas: add dracut option to menu srinuvasan.a via isar-users
@ 2025-11-26 9:43 ` Zhihang Wei
0 siblings, 0 replies; 2+ messages in thread
From: Zhihang Wei @ 2025-11-26 9:43 UTC (permalink / raw)
To: srinuvasan.a, isar-users; +Cc: quirin.gylstorff
Applied to next, thanks.
On 11/16/25 11:11, srinuvasan.a via isar-users wrote:
> From: srinuvasan <srinuvasan.a@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 <srinuvasan.a@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"
--
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/68946cd9-cb92-4c7b-8068-5ed531c000df%40ilbers.de.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-26 9:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-16 10:11 [PATCH] kas: add dracut option to menu srinuvasan.a via isar-users
2025-11-26 9:43 ` Zhihang Wei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox