/****************
整理yjm0573
2010-12-14
****************/
# Locale sets language and country.
d-i debian-installer/locale string en_HK
# Keyboard selection.
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
# Network configuration.
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
#d-i netcfg/get_nameservers string 202.96.209.5
#d-i netcfg/get_ipaddress string 192.168.16.250
#d-i netcfg/get_netmask string 255.255.255.0
#d-i netcfg/get_gateway string 192.168.16.1
#d-i netcfg/confirm_static boolean true
# Mirror settings
d-i mirror/country string manual
d-i mirror/http/hostname string 192.168.16.241
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string
# Clock and time zone setup
d-i clock-setup/utc boolean false
d-i time/zone string Asia/Shanghai
# Partitioning
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
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
# Base system installation
d-i base-installer/kernel/image string linux-generic
# Account setup
d-i passwd/root-login boolean true
d-i passwd/root-password password 123456
d-i passwd/root-password-again password 123456
d-i passwd/make-user boolean false
d-i user-setup/encrypt-home boolean false
# Apt setup
d-i apt-setup/use_mirror boolean false
d-i apt-setup/services-select multiselect security
d-i apt-setup/security_host string 192.168.16.241
d-i apt-setup/security_path string /ubuntu
d-i debian-installer/allow_unauthenticated string true
# Package selection
tasksel tasksel/first multiselect standard
d-i pkgsel/include string openssh-server
d-i pkgsel/upgrade select none
d-i pkgsel/language-packs multiselect en, zh
d-i pkgsel/update-policy select none
# Boot loader installation
d-i grub-installer/only_debian boolean true
# Finishing up the installation
d-i finish-install/reboot_in_progress note
创建preseed.cfg文件,将上述内容拷贝进去
从光盘里找到install/netboot/ubuntu-installer/i386/initrd.gz
将其复制到当前目录
mkdir initrd
cd initrd
cpio -i < ..initrd.gz
将preseed.cfg拷贝到当前目录
再执行
find . | cpio -o -H newc |gzip -9 >../initrd.img.gz
cd ..
mv initrd.img.gz initrd.gz
将新生成的initrd.gz放置到tftp对应的目录下
tftp的使用请参考其他文档
阅读(5099) | 评论(1) | 转发(0) |