Default Bootloader unlock

Just a quick question, but when you unlock your bootloader, I know your memory is wiped. Is the system partition wiped too? Do I need an OS ready to load either via RSD lite, or is it just a factory reset?

Sent from my XT1058 using Tapatalk