Generation of primordial fluctuations in curved spaces