Skip to content

Instantly share code, notes, and snippets.

@Jerry-Fix
Created April 13, 2013 17:03
Show Gist options
  • Save Jerry-Fix/5379203 to your computer and use it in GitHub Desktop.
Save Jerry-Fix/5379203 to your computer and use it in GitHub Desktop.
ubuntu 12.04 preseed for cobbler
d-i debian-installer/locale string en_US
d-i debian-installer/language string en
d-i debian-installer/country string US
d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/allow_unauthenticated string true
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
d-i netcfg/choose_interface select em1
d-i netcfg/dhcp_timeout string 120
d-i mirror/country string manual
d-i mirror/http/hostname string cobbler.jaseywang.me
d-i mirror/http/directory string /cobbler/repo_mirror/precise
d-i mirror/http/proxy string
d-i clock-setup/utc boolean true
d-i time/zone string Asia/Shanghai
#d-i clock-setup/ntp boolean false
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string ntp.jaseywang.me
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto/expert_recipe string \
boot-root :: \
150 150 150 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
20480 20480 20480 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
. \
20480 20480 20480 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /var } \
. \
1140000 1140000 1140000 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /home } \
. \
8000 8000 50% linux-swap \
method{ swap } format{ } \
.
d-i partman/default_filesystem string ext4
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-md/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/mount_style select uuid
d-i base-installer/kernel/image string linux-server
d-i passwd/root-login boolean false
d-i passwd/make-user boolean true
d-i passwd/user-fullname string jaseywang
d-i passwd/username string jaseywang
d-i passwd/user-password-crypted password $1$/pddg4ez$3JdqmMgFJ5wgggdAMEKAC0
d-i user-setup/encrypt-home boolean false
tasksel tasksel/first multiselect openssh-server
tasksel tasksel/force-tasks string server
d-i pkgsel/update-policy select none
d-i pkgsel/include string ntp puppet
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean false
d-i finish-install/reboot_in_progress note
d-i preseed/late_command string \
cd /target; \
wget http://mirror.jaseywang.me/cobbler/ks_mirror/ubuntu_post/postinstall.sh; \
chmod +x ./postinstall.sh; \
chroot ./ ./postinstall.sh; \
rm -f ./post-install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment