common/rc: add _require_kernel_config and _has_kernel_config