that was anything but a foregone conclusion in the opening weeks of the korean war , when north koreans rolled over the lightly-armed south korean forces , pressing fleeing civilians and retreating troops to the fringes of pusan on the peninsula 's southern tip .