Skip to contentSkip to conversation

init/Kconfig: Preserve mtimes in initramfs only if BLK_DEV_INITRD

PATCH New Alec Ari 1 participant 1 message Aug 16, 2022 Block layer

lore
Share & tools
lore

Alec Ari

author
#0 lore raw

PATCH 1/1 init/Kconfig: Preserve mtimes in initramfs only if BLK_DEV_INITRD

From: Alec Ari <[email protected]>
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?

---
 init/Kconfig | 1 +
 1 file changed, 1 insertion(+)
init/Kconfig +1 -0
index 80fe60fa7..8322860a7 100644
@@ -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
Signature · 1 line
2.37.2