Linux filesystem development
 help / color / mirror / Atom feed
* [PATCH] init: INITRAMFS_PRESERVE_MTIME should depend on BLK_DEV_INITRD
@ 2025-09-15  7:11 Geert Uytterhoeven
  2025-09-15  8:14 ` David Disseldorp
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2025-09-15  7:11 UTC (permalink / raw)
  To: Andrew Morton, David Disseldorp, Martin Wilck, Alexander Viro,
	Christian Brauner, Jan Kara
  Cc: Askar Safin, linux-fsdevel, linux-kernel, Geert Uytterhoeven

INITRAMFS_PRESERVE_MTIME is only used in init/initramfs.c and
init/initramfs_test.c.  Hence add a dependency on BLK_DEV_INITRD, to
prevent asking the user about this feature when configuring a kernel
without initramfs support.

Fixes: 1274aea127b2e8c9 ("initramfs: add INITRAMFS_PRESERVE_MTIME Kconfig option")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 init/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/init/Kconfig b/init/Kconfig
index e3eb63eadc8757a1..c0c61206499e6bd5 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1501,6 +1501,7 @@ config BOOT_CONFIG_EMBED_FILE
 
 config INITRAMFS_PRESERVE_MTIME
 	bool "Preserve cpio archive mtimes in initramfs"
+	depends on BLK_DEV_INITRD
 	default y
 	help
 	  Each entry in an initramfs cpio archive carries an mtime value. When
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-09-15 13:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-15  7:11 [PATCH] init: INITRAMFS_PRESERVE_MTIME should depend on BLK_DEV_INITRD Geert Uytterhoeven
2025-09-15  8:14 ` David Disseldorp
2025-09-15 11:39 ` Martin Wilck
2025-09-15 13:02 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox