Friday, July 13, 2012

ubuntu 12.04 precise: automated installation, preseeding

To get you started: https://help.ubuntu.com/12.04/installation-guide/i386/appendix-preseed.html

I had never done this before, and had great fun getting it to work. I was installing from a USB thumb drive. So I made of those guys per usual. The help page then says

"... you need to tell the installer what file to use when you boot it. This is normally done by passing the kernel a boot parameter, either manually at boot time or by editing the bootloader configuration file (e.g. syslinux.cfg) and adding the parameter to the end of the append line(s) for the kernel."

Since we're automating this, editing syslinux.cfg seemed to be the way to go. However, taking a look at that guy, there was no append line. Sad face. I added a kernel and append line, but it wasn't changing the boot parameters. I then came across /syslinux/txt.cfg, which had what looked like the boot prompt being used. So I changed the append line there to include "preseed/file=/hd-media/preseed.cfg". Error, "Failed to retrieve the preconfiguration file". I changed this to "preseed/file=/cdrom/preseed.cfg".. and voila!

Some other newb notes:

  • If the installer stops to ask you a question, you can press escape and a menu with lots of options will popup. You can abort the installation from here.