From: Alec Ari <alec@xxxxxxxxxxx>
Date: Mon, 15 Aug 2022 19:18:56 -0500
Subject: init/Kconfig: Preserve mtimes in initramfs only if
BLK_DEV_INITRD
Would preserving mtimes in initramfs prove useful if
BLK_DEV_INITRD is disabled?
Signed-off-by: Alec Ari <alec@xxxxxxxxxxx>
---
init/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/init/Kconfig b/init/Kconfig
index 80fe60fa7..8322860a7 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1392,6 +1392,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.37.2