Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ########################################
- # Required Kernel command line options #
- ########################################
- # locale=en_US keyboard-configuration/layout=USA keyboard-configuration/variant=USA console-setup/ask_detect=false netcfg/choose_interface=eth0
- #######
- # NTP #
- #######
- d-i clock-setup/ntp-server string 172.20.0.2
- #################################
- # Load specific storage modules #
- #################################
- disk-detect disk-detect/module_select select megaraid_sas
- #########################
- # Define storage device #
- #########################
- d-i partman-auto/disk string /dev/sda
- ########################
- # Regular partitioning #
- ########################
- 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-auto/expert_recipe string \
- boot-root :: \
- 256 512 512 ext3 \
- $primary{ } $bootable{ } \
- method{ format } format{ } \
- use_filesystem{ } filesystem{ ext3 } \
- mountpoint{ /boot } \
- . \
- 5120 10240 1000000000 ext4 \
- method{ format } format{ } \
- use_filesystem{ } filesystem{ ext4 } \
- mountpoint{ / } \
- . \
- 1024 2048 100% linux-swap \
- method{ swap } format{ } \
- .
- d-i partman/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
- ############
- # /Regular #
- ############
- #####################
- # LVM Configuration #
- #####################
- #d-i partman-auto/method string lvm
- #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-lvm/guided_size string max
- #d-i partman-auto/choose_recipe select atomic
- ########
- # /LVM #
- ########
- ########
- # Grub #
- ########
- d-i grub-installer/only_debian boolean true
- #d-i grub-installer/with_other_os boolean true
- d-i console-setup/dont_ask_layout note
- d-i console-keymaps-at/keymap select us
- d-i netcfg/get_hostname string unassigned-hostname
- d-i netcfg/get_domain string unassigned-domain
- d-i mirror/codename string precise
- d-i mirror/country string manual
- d-i mirror/http/countries select manual
- d-i mirror/http/directory string /mirror/ubuntu/
- d-i mirror/http/hostname string 172.20.0.2
- d-i mirror/http/mirror select us.archive.ubuntu.com
- d-i mirror/suite string precise
- d-i mirror/http/proxy string
- d-i apt-setup/services-select multiselect security
- finish-install finish-install/reboot_in_progress note
- #Root password
- d-i passwd/root-password-crypted password #####
- user-setup-udeb passwd/root-login boolean true
- user-setup-udeb passwd/make-user boolean false
- clock-setup clock-setup/utc boolean false
- tzsetup-udeb time/zone select America/Chicago
- tasksel tasksel/first openssh-server
- d-i pkgsel/include string vim zsh openssh-server ntpdate
- # Disable automatic updates
- d-i pkgsel/update-policy select none
- # By default the installer requires that repositories be authenticated
- # using a known gpg key. This setting can be used to disable that
- # authentication. Warning: Insecure, not recommended.
- d-i debian-installer/allow_unauthenticated string true
- popularity-contest popularity-contest/participate boolean false
- d-i preseed/late_command string \
- in-target wget http://172.20.0.2/pxe/profiles/Precise-x86_64-AutoInstall.files/etc/apt/sources.list -O /etc/apt/sources.list; \
- in-target wget http://172.20.0.2/pxe/profiles/Precise-x86_64-AutoInstall.files/etc/apt/magellan-gpg-key -O /root/magellan-gpg-key; \
- in-target apt-key add /root/magellan-gpg-key; \
- in-target apt-get -y update; \
- #in-target ntpdate 172.20.0.2; \
- in-target apt-get -y install bcfg2; \
- in-target wget http://172.20.0.2/pxe/profiles/Precise-x86_64-AutoInstall.files/etc/bcfg2.conf -O /etc/bcfg2.conf; \
- in-target wget http://172.20.0.2/pxe/profiles/Precise-x86_64-AutoInstall.files/etc/bcfg2.crt -O /etc/bcfg2.crt; \
- in-target bcfg2 -qve -s disabled -b auth:ssh; \
- in-target bcfg2 -qve -s disabled; \
- in-target update-grub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement