Rc.common script is executing during build time

I'm trying to compile in OpenWRT environment , during compilation
In rootfs.mk file, the function prepare_rootfs() is getting called for setting up configuration required for rootfs , inside this function because of this particular line
IPKG_INSTROOT=$(1) $$(command -v bash) ./etc/rc.common $$script enable;
the sys_init script got executing during compile time but this shouldn't happen right, I don't why this is happening. Any help and hints much appreciated!

This is expected.

1 Like