Bonjour à tous,
J’ai déjà écumé ce forum ou le net à la recherche de solution, sans pour autant tomber sur quelque chose de concret, je m’en remet donc à vos lumières.
Voici mon fichier preseed:
# Locales
d-i debian-installer/fallbacklocale select fr_FR.UTF-8
d-i debian-installer/locale select fr_FR.UTF-8
# Keyboard
d-i console-keymaps-at/keymap select fr-latin9
d-i debian-installer/keymap string fr-latin9
d-i hw-detect/start_pcmcia boolean true
d-i localechooser/countrylist/Europe select
d-i localechooser/shortlist/fr select
# Network
# Administrator will be prompted to configure network manually.
d-i netcfg/choose_interface select auto
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_domain string workgroup
d-i netcfg/get_gateway string XXX.XXX.XXX.XXX
d-i netcfg/get_hostname string host
d-i netcfg/get_ipaddress string XXX.XXX.XXX.XXX
d-i netcfg/get_nameservers string XXX.XXX.XXX.XXX
d-i netcfg/get_netmask string XXX.XXX.XXX.XXX
# Clock
# Fixe timezone, and start a NTP sync. The process could wait few seconds
# if there is no network available.
d-i clock-setup/utc boolean true
d-i time/zone string Europe/Paris
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string
# Partitionning
d-i partman-auto/disk string /dev/sda
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-auto-lvm/new_vg_name string rootvg
#<limits>::=<minimal size en Mo>_<priority>_<maximal size en Mo>_<parted fs>
d-i partman-auto/expert_recipe string \
boot-root :: \
80 300 400 ext3 \
$primary{ } \
$bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /boot } \
. \
2000 6000 8000 ext3 \
$lvmok{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ / } \
. \
96 200 300 ext3 \
$lvmok{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /home } \
. \
100 150 200 ext3 \
$lvmok{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /tmp } \
options/noatime{ noatime } /noexec{ noexec } \
. \
2000 2000 2000 linux-swap \
$lvmok{ } \
method{ swap } format{ } \
. \
d-i partman-lvm/confirm boolean true
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition \
select Finish partitioning and write changes to disk
d-i partman/confirm boolean true
# Users
# No root access, the user created will have sudo rights.
d-i passwd/root-login boolean false
d-i passwd/user-fullname string harty
d-i passwd/username string harty
d-i passwd/user-password password mot-de-passe-en-carton
d-i passwd/user-password-again password mot-de-passe-en-carton
# Apt
# Disable apt.
d-i apt-setup/non-free boolean false
d-i apt-setup/contrib boolean false
d-i apt-setup/services-select multiselect
d-i apt-setup/use_mirror boolean false
# Grub
# Auto install grub if this is the only one system.
d-i grub-installer/only_debian boolean true
# End
# Reboot automatically
d-i finish-install/reboot_in_progress note
# Standard minimal system
tasksel tasksel/first multiselect standard
d-i preseed/late_command string echo "sh postinstall.sh" >> /target/home/harty/.bashrc; cp -a /cdrom/postinstall.386/postinstall.sh /target/home/harty/;cp -a /cdrom/postinstall.386/*.deb /target/var/cache/apt/archives/
L’installe se termine, la syntax correctement lisible par le debian installer, mais j’ai quelques soucis:
1/ après le partionnement, le système me demande si je veux ecrire les modif sur le disque et config LVM (mais bien sur que je veux ). Je n’ai pas encore trouvé la ligne miracle pour le rendre silencieux
2/ Les options de montages ne passent pas toutes pour une seule et même partoche (exemple avec /tmp)
3/ quoi que je mette comme valeur dans la swap, je me retrouve toujours avec un LV de 10 Go (le système prenant le reste du disque de 20Go)
Quelqu’un aurait-il une idée?
En vous remerciant par avance