Boa Tarde,
Pessoal estou editando a ISO do debian 8 para fazer uma instalação
automatizada usando o preseed.cfg porém sem sucesso.
A ideia seria dele instalar o sistema operacional automático, apenas
solicitar para o usuário como deseja particionar, o restante seria
automático, configuração de REDE, Teclado, Idioma entre outras opções.
Não estou usando a versão netinstall estou usando o CD normal de 600mb.
# Crio uma pasta chamada iso
mkdir iso
# Monta o CD no mnt
mount -o loop debiancdinstal.iso /mnt
# Copio os arquivos do CD para a pasta ISO
rsync -a -H --exclude=TRANS.TBL /mnt/ ./iso
# Copio para a raiz o arquivo preseed.cfg
cp preseed.cfg iso/
# Altero o conteudo do isolinux.cfg
cat isolinux.cfg > iso/isolinux/isolinux.cfg
# Atualizo o MD5
cd iso
md5sum `find -follow -type f` > md5sum.txt
# Crio a ISO
cd ..
genisoimage -o test.iso -r -J -no-emul-boot -boot-load-size 4
-boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat ./iso
# Conteudo do arquivo preseed.cfg
### LINGUAGEM
d-i debian-installer/language string en
d-i debian-installer/country string BR
d-i debian-installer/locale string pt_BR.UTF-8
d-i localechooser/supported-locales multiselect pt_BR.UTF-8
### TECLADO
d-i console-tools/archs select at
d-i console-keymaps-at/keymap select br-abnt2
d-i keyboard-configuration/xkb-keymap select br-abnt2
d-i keyboard-configuration/toggle select No toggling
### REDE
d-i netcfg/hostname string servidorteste
d-i netcfg/get_ipaddress string 10.10.10.1
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/confirm_static boolean true
### REPOSITORIOS
### Versao do Debian 8.1 jessie
d-i mirror/country string BR
d-i mirror/http/hostname string ftp.br.debian.org
d-i mirror/http/directory string /debian
d-i mirror/suite string jessie
d-i mirror/http/proxy string
### CONTA DO USUARIO
d-i passwd/root-login boolean true
d-i passwd/make-user boolean false
### Senha Padrao `printf "abc123!" | mkpasswd -s -m md5`
d-i passwd/root-password-crypted password $1$Gy43AnD3$TkVbQupeEhkrDN4llbPvr0
### USUARIO COMUN (CONTA DESABILITADE SOMENTE USAR ROOT)
d-i passwd/user-fullname boolean false
d-i passwd/username boolean false
d-i passwd/user-password boolean false
d-i passwd/user-password-again boolean false
### HORA
d-i clock-setup/utc boolean true
d-i time/zone string America/Sao_Paulo
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string pool.ntp.br
### PARTICIONAMENTO MANUAL
d-i partman-auto/method string regular
d-i partman-auto/choose_recipe select atomic
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
### CONFIGURACOES DO ATP-GET
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i apt-setup/services-select multiselect security
d-i apt-setup/security_host string security.debian.org
### PACOTES EXTRAS QUE SERAM INSTALADOS
tasksel tasksel/first multiselect standart, ssh-server
### NAO ENVIA INFORMACOES REFERENTE A PACOTES UTILIZADOS
popularity-contest popularity-contest/participate boolean false
### INSTALA O GRUB
d-i grub-installer/only_debian boolean true
### TERMINA A INSTALACAO E REINICIA
d-i finish-install/reboot_in_progress note
# Conteudo do isolinux.cfg
DEFAULT install
PROMPT 0
TIMEOUT 300
UI vesamenu.c32
MENU TITLE Instalacao Automatica
MENU COLOR border 30;44 #40ffffff #a0000000 std
MENU COLOR title 1;36;44 #9033ccff #a0000000 std
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel 37;44 #50ffffff #a0000000 std
MENU COLOR help 37;40 #c0ffffff #a0000000 std
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07 37;40 #90ffffff #a0000000 std
MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
MENU VSHIFT 12
MENU ROWS 6
MENU TIMEOUTROW 12
MENU TABMSGROW 13
MENU CMDLINEROW 13
MENU HELPMSGROW 15
label install
menu label ^Instalacao Servidor
linux /install.amd/vmlinuz
initrd /install.amd/initrd.gz
append cdrom-detect/try-usb=true preseed/file=/cdrom/preseed.cfg
locale=en_US keyboard-configuration/xkb-keymap=us
languagechooser/language-name=English countrychooser/shortlist=US
DEBCONF_DEBUG=5 video=vesa:ywrap,mtrr vga=788 --- quiet
*--*
Att
Marcos Carraro
about.me/marcoscarraro