From 88f3968d3be143b01f84fd8c323bdd4b11b177bf Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Tue, 9 Jun 2026 13:50:33 +0300 Subject: [PATCH] sched/Kconfig: Fix ETC_ROMFS dependency When using FS_CROMFS for etc, user typically don't need FS_ROMFS, they are completely separate filesystems. But both ETC_ROMFS and ETC_CROMFS are needed, the first one selects that the ETC needs to be mounted from ROM based filesystem, and ETC_CROMFS just specifies that the backing filesystem is actually the CROMFS. Iow; make ETC_ROMFS depend on FS_ROMFS || FS_CROMFS, so that the user can drop FS_ROMFS when only FS_CROMFS is needed. Signed-off-by: Jukka Laitinen --- sched/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sched/Kconfig b/sched/Kconfig index a2c6fbff12f..9b4ed4c82c8 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -534,9 +534,9 @@ endif # INIT_FILE menuconfig ETC_ROMFS bool "Auto-mount etc baked-in ROMFS image" default n - depends on !DISABLE_MOUNTPOINT && FS_ROMFS + depends on !DISABLE_MOUNTPOINT && (FS_ROMFS || FS_CROMFS) ---help--- - Mount a ROMFS filesystem at /etc and provide a system init + Mount a ROMFS or a CROMFS filesystem at /etc and provide a system init script at /etc/init.d/rc.sysinit and a startup script at /etc/init.d/rcS. The default system init script mounts /tmp as TMPFS when FS_TMPFS is enabled, otherwise it can