diff options
| author | Geert Uytterhoeven <geert+renesas@glider.be> | 2025-09-15 09:11:05 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-15 12:03:13 +0200 |
| commit | 92a8931b1ed854239eca3dad824710f0735141c5 (patch) | |
| tree | 7d858f81a750317452a39742bcf2a4deb70a621f /init | |
| parent | 7cbdf35384dae1fcceb6319c2f9cbd0e5ce89fa5 (diff) | |
| download | linux-92a8931b1ed854239eca3dad824710f0735141c5.tar.gz linux-92a8931b1ed854239eca3dad824710f0735141c5.tar.bz2 linux-92a8931b1ed854239eca3dad824710f0735141c5.zip | |
init: INITRAMFS_PRESERVE_MTIME should depend on BLK_DEV_INITRD
[ Upstream commit 74792608606a525a0e0df7e8d48acd8000561389 ]
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>
Reviewed-by: Martin Wilck <mwilck@suse.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'init')
| -rw-r--r-- | init/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index ecddb94db8dc..e5d6d798994a 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1504,6 +1504,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 |
