Comment 1 for bug 1207890

Revision history for this message
Chris Gagnon (chris.gagnon) wrote :

# This is based on the default Utah preseed file
# Additions are specific to get a desktop working and autopilot etc.
# This is the minimal preseed that worked on 8 precise ISOs
# Further version-specific tweaks may be necessary or desirable in the future

d-i debian-installer/locale string en_US.UTF-8
#d-i netcfg/get_hostname string unity-ap
d-i partman-auto/method string regular
#need this for desktop
d-i partman/choose_partition select Finish partitioning and write changes to disk
#need this for cobbler
d-i partman/confirm boolean true
#need this for non-desktop
d-i partman/confirm_nooverwrite boolean true
d-i time/zone string Etc/UTC
d-i passwd/user-fullname string Jenkins
d-i passwd/username string fakeuser
d-i passwd/user-password password fakepassword
d-i passwd/user-password-again password fakepassword

# -- Packages etc.
# us.archive.ubuntu.com seems to give us issues sometimes, lets try with just
# archive.ubuntu.com
d-i mirror/country string manual
d-i mirror/http/hostname string archive.ubuntu.com
d-i mirror/http/directory string /ubuntu
# d-i apt-setup/restricted boolean true
d-i apt-setup/universe boolean true

#need this for non-desktop
d-i finish-install/reboot_in_progress note
# Late commands, auto-login etc.
d-i preseed/late_command string \
  echo "[SeatDefaults]" >> /target/etc/lightdm/lightdm.conf.d/utah-autologin.conf;\
  echo "autologin-user=jenkins" >> /target/etc/lightdm/lightdm.conf.d/utah-autologin.conf;\
  echo "jenkins ALL=(ALL) NOPASSWD: ALL" >> /target/etc/sudoers;\
  echo "Defaults always_set_home" >> /target/etc/sudoers;\
  in-target apt-get install -y curl;\
  in-target apt-get install -y openssh-server bzr;\
  sed -i 's/eject -p -m.*/&; [ "$prompt" ] || return 0/' /etc/init.d/casper;