Script to Automate Ubuntu Installer

Timo Aaltonen tjaalton at
Thu Jan 12 08:43:20 GMT 2006

On Thu, 12 Jan 2006, Timo Aaltonen wrote:

> I've had an automated setup since hoary and updated it to dapper a few weeks 
> back. Perhaps there should be a "best-practises" page for d-i somewhere, 
> because d-i is a moving target so some stuff won't work the way you'd assume 
> (like, for dapper the locales setup or preseeding pkgsel with your own 
> package list).

umm, actually the pkgsel/install-pattern -stuff works after all.. I just 
had a gross syntax error in the list :)

here is a simple oneliner to parse a file where there are one package per 
line and comments where needed. It greps all uncommented lines and 
substitutes newlines with $|~n^ :

echo "d-i pkgsel/install-pattern string ~n^`grep -v "#" package-list | \
sed ' :a;N;$!ba;s/\n/$|~n^/g'`$" > preseed-file


More information about the ubuntu-devel mailing list