Chapter 4. Obtaining System Installation Media #Language modules to install langsupport en_US #System keyboard keyboard us #System mouse mouse #System timezone timezone America/New_York #Root password rootpw --disabled #Initial user (user with sudo capabilities) user ubuntu --fullname "Ubuntu User" --password root4me2 #Reboot after installation reboot #Use text mode install text #Install OS instead of upgrade install #Installation media cdrom #nfs --server=server.com --dir=/path/to/ubuntu/ #url --url http://server.com/path/to/ubuntu/ #url --url ftp://server.com/path/to/ubuntu/ #Advanced partition #part /boot --fstype=ext4 --size=500 --asprimary #part pv.aQcByA-UM0N-siuB-Y96L-rmd3-n6vz-NMo8Vr --grow --size=1 #volgroup vg_mygroup --pesize=4096 pv.aQcByA-UM0N-siuB-Y96L-rmd3-n6vz-NMo8Vr #logvol / --fstype=ext4 --name=lv_root --vgname=vg_mygroup --grow --size=10240 \ --maxsize=20480 #logvol swap --name=lv_swap --vgname=vg_mygroup --grow --size=1024 --maxsize=8192 #Basic disk partition part / --fstype ext4 --size 1 --grow --asprimary part swap --size 1024 part /boot --fstype ext4 --size 256 --asprimary #System bootloader configuration bootloader --location=mbr #Clear the Master Boot Record zerombr yes #Partition clearing information clearpart --all --initlabel #System authorization infomation 29