Friday, October 14, 2011

Way to install Ubuntu 11.10 using a flash drive

Final edit: this issue seems to be fixed now.

Edit: doesn't seem to matter which installer I use...
Edit2: issue I run into with 11.10 ISOs

Apparently, Ubuntu 11.10 is distributed on "hybrid" ISOs: you can use something like Universal USB Installer or UBootIn to copy the ISO to a USB drive, and it can still be modified afterwards. I do some preseeding for work, so I needed to still be able to do that like I did with the hd-media installer.

Sample entry for syslinux/txt.cfg or cfg file on USB root (UBootIn)

  menu label ^Install Company Loadset
  kernel /install/vmlinuz
  append initrd=/install/initrd.gz file=/cdrom/preseed/company.seed keyboard-configuration/layoutcode=us --
Sample snippet from custom preseed file

d-i preseed/late_command string \
 . /cdrom/ ; \
 in-target sh /postinstall/ ;

So as long as you change your hd-media paths to cdrom , you should be able to get a customized install working on a flash drive. And you should be able to copy everything to a folder for replication to more flash drives, using syslinux to make them bootable.

1 comment: