Deploying Debian 5 GNU/Linux with Insight Control for Linux Version 6.0 and 6.1
13
#tasksel tasksel/first multiselect standard, file-server
#tasksel tasksel/first multiselect standard, mail-server
#tasksel tasksel/first multiselect standard, sql-database
#tasksel tasksel/first multiselect standard, laptop
# pkgs
###########################################
d-i pkgsel/include string snmpd
# xorg
###########################################
xserver-xorg xserver-xorg/autodetect_monitor boolean true
xserver-xorg xserver-xorg/autodetect_video_card boolean false
xserver-xorg xserver-xorg/config/device/driver select ati
xserver-xorg xserver-xorg/config/device/identifier
string ATI Technologies Inc
ES1000 rev 2
xserver-xorg xserver-xorg/config/monitor/selection-method select medium
xserver-xorg xserver-xorg/config/monitor/mode-list select 1024x768 @ 60 Hz
xserver-xorg xserver-xorg/config/display/modes multiselect 1024x768, 800x600
# grub
###########################################
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
# reboot
###########################################
d-i finish-install/reboot_in_progress note
# postscript
###########################################
d-i preseed/late_command string in-target chroot /target ; in-target wget
http://${cms_http_ip}:${cms_http_port}/instconfig/custom/${os}/db5-
agentless.sh ; in-target chmod +x db5-agentless.sh ; in-target sh db5-
agentless.sh ${cms_http_ip}
###########################################
EOF`
# Write the preseed file.
echo "${COMMANDS}" > ${config_file}
##############################################################################
# Specify any kernel parameters.
##############################################################################
if [ "${boot_method}" == "virtual_media" ]
then
# Use only the first name server if there are multiple name servers.
nameserver=`echo $nameservers | cut -d' ' -f1`
# Use only the first domain if there are multiple domains.
domain=`echo $domains | cut -d' ' -f1`
# These kernel parameters are specific to a custom OS installation that
# uses virtual media to boot.
KERNEL_PARAMS="append initrd=${ramdisk} DEBCONF_PRIORITY=critical
preseed=${config_url} xdevice=${mac} init=/init_script ip=${ip}
netmask=${netmask} gateway=${gateway} nameserver=${nameserver}
domain=${domain} hostname=${hostname} vga=788 --"
else
# These kernel parameters are specific to a custom OS installation that
# uses pxe to boot.