# 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
# 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 choose_ partition select Finish partitioning and write changes to disk confirm_ nooverwrite boolean true user-fullname string Jenkins user-password password fakepassword user-password- again password fakepassword
#d-i netcfg/get_hostname string unity-ap
d-i partman-auto/method string regular
#need this for desktop
d-i partman/
#need this for cobbler
d-i partman/confirm boolean true
#need this for non-desktop
d-i partman/
d-i time/zone string Etc/UTC
d-i passwd/
d-i passwd/username string fakeuser
d-i passwd/
d-i passwd/
# -- Packages etc. ubuntu. com seems to give us issues sometimes, lets try with just http/hostname string archive.ubuntu.com http/directory string /ubuntu restricted boolean true
# us.archive.
# archive.ubuntu.com
d-i mirror/country string manual
d-i mirror/
d-i mirror/
# d-i apt-setup/
d-i apt-setup/universe boolean true
#need this for non-desktop install/ reboot_ in_progress note late_command string \ etc/lightdm/ lightdm. conf.d/ utah-autologin. conf;\ user=jenkins" >> /target/ etc/lightdm/ lightdm. conf.d/ utah-autologin. conf;\ etc/sudoers; \ etc/sudoers; \
d-i finish-
# Late commands, auto-login etc.
d-i preseed/
echo "[SeatDefaults]" >> /target/
echo "autologin-
echo "jenkins ALL=(ALL) NOPASSWD: ALL" >> /target/
echo "Defaults always_set_home" >> /target/
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;