How to ship Linux preinstalled

Posted by linuxed1@reddit | linux | View on Reddit | 22 comments

So I have a Lenovo laptop and I'm going to sell it. I would like to sell it with Ubuntu, or fedora installed.
How do I do that without me logging in etc.? so I know windows has a command to prep it for being logged in as a new user.
Does either Ubuntu, or fedora do that?