Preseeding anyone?

Preseed is a powerful tool but its a pain to work with

Today during my ubuntu install I noticed some major problems that I had not seen on the over 100 previous installs. While I install via pxe and use local mirrors for updates I failed to notice that during install the system was reaching out to security.ubuntu.com. This is not a huge problem but is network over head I would rather keep local but today it turned out to be a huge problem as security was having major issues and my 12 minute install did not complete in over an hour. Using F4 on the boot I noticed it was stuck on pulling a update from security.ubuntu.com and thats when the real fun started.

I of course had the url set for local installs but never noticed that did not cover everything.

#Use Web installation
url --url http://pxe.example.com/ubuntu-9.10-server-x86_64/ubuntu/

After a lot of digging I found the needed lines. These lines need to be right after the url according to the Ubuntu docs.

#Use Web installation
url --url http://pxe.example.com/ubuntu-9.10-server-x86_64/ubuntu/
preseed apt-setup/security_host string aptmirror.example.com
preseed apt-setup/security_path string /repo_mirror/ubuntu-9.10-server-x86_64/

Preseed is a powerful tool but its a pain to work with, the link below will give you some additional guidance.

Leave a Reply

Your email address will not be published. Required fields are marked *