Commit 61ee7af3 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼 Committed by Thomas Gambier

Update debian 10 image

parent faf836ff
...@@ -32,13 +32,14 @@ ...@@ -32,13 +32,14 @@
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><wait>", "<esc><wait><wait><wait><wait>",
"auto preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian10.cfg ", "auto preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian10.cfg ",
"debian-installer=en_US.UTF-8 locale=en_US keymap=fr", "debian-installer=en_US.UTF-8 locale=en_US keymap=fr ",
"netcfg/get_hostname={{ .Name }} ", "netcfg/get_hostname={{ .Name }} ",
"netcfg/get_domain={{ user `domain`}} ", "netcfg/get_domain={{ user `domain`}} ",
"fb=false debconf/frontend=noninteractive ", "fb=false debconf/frontend=noninteractive ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
...@@ -47,7 +48,6 @@ ...@@ -47,7 +48,6 @@
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
"scripts": [ "scripts": [
"scripts/update.sh", "scripts/update.sh",
"scripts/packages.sh", "scripts/packages.sh",
"scripts/network-debian9.sh", "scripts/network-debian.sh",
"scripts/cleanup.sh", "scripts/cleanup.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
] ]
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
"scripts": [ "scripts": [
"scripts/update.sh", "scripts/update.sh",
"scripts/packages.sh", "scripts/packages.sh",
"scripts/network-debian9.sh", "scripts/network-debian.sh",
"scripts/cleanup.sh", "scripts/cleanup.sh",
"scripts/setup-base-slapos.sh", "scripts/setup-base-slapos.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
"scripts": [ "scripts": [
"scripts/update.sh", "scripts/update.sh",
"scripts/packages.sh", "scripts/packages.sh",
"scripts/network-debian9.sh", "scripts/network-debian.sh",
"scripts/cleanup.sh", "scripts/cleanup.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
] ]
......
d-i debian-installer/locale string en_US d-i debian-installer/locale string en_US
d-i keyboard-configuration/xkb-keymap select fr d-i keyboard-configuration/xkb-keymap select fr
d-i clock-setup/ntp boolean true d-i time/zone string Europe/Paris
d-i clock-setup/utc boolean true d-i clock-setup/utc boolean true
d-i time/zone string CET d-i apt-setup/enable-source-repositories string false
d-i finish-install/reboot_in_progress note #d-i apt-setup/use_mirror boolean true
d-i grub-installer/only_debian boolean true d-i auto-install/enable string true
d-i grub-installer/with_other_os boolean true d-i base-installer/install-recommends string false
d-i grub-installer/bootdev string #d-i debconf/priority string critical
d-i grub-installer/choose_bootdev select /dev/vda d-i finish-install/reboot_in_progress string note
d-i netcfg/choose_interface select auto
d-i netcfg/wireless_wep string
d-i mirror/country string manual d-i mirror/country string manual
d-i mirror/http/hostname string ftp.fr.debian.org
d-i mirror/http/directory string /debian d-i mirror/http/directory string /debian
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/proxy string d-i mirror/http/proxy string
d-i netcfg/choose_interface select auto
d-i netcfg/wireless_wep string
d-i partman-auto/choose_recipe select atomic d-i partman-auto/choose_recipe select atomic
d-i partman-auto/method string regular d-i partman-auto/method string regular
d-i partman/choose_partition select finish d-i partman/choose_partition select finish
...@@ -21,14 +21,21 @@ d-i partman/confirm boolean true ...@@ -21,14 +21,21 @@ d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm_write_new_label boolean true d-i partman/confirm_write_new_label boolean true
d-i partman/default_filesystem string ext4 d-i partman/default_filesystem string ext4
d-i passwd/root-login boolean false d-i passwd/make-user string false
d-i pkgsel/include string openssh-server d-i passwd/root-login string false
d-i pkgsel/upgrade select full-upgrade
choose-mirror-bin mirror/http/proxy string
d-i apt-setup/use_mirror boolean true
d-i pkgsel/include string sudo aptitude openssh-server wget vim ### Package selection
apt-cdrom-setup apt-setup/cdrom/set-first boolean false
apt-mirror-setup apt-setup/use_mirror boolean true
popularity-contest popularity-contest/participate boolean false
tasksel tasksel/first multiselect standard, ssh-server tasksel tasksel/first multiselect standard, ssh-server
# Individual additional packages to install
# all the packages below are installed through tasksel "standard"
#d-i pkgsel/include string ssh aptitude bwm-ng ca-certificates dbus-user-session debian-goodies dnsutils eatmydata efibootmgr gdb git gnupg host htop iotop linux-cpupower linux-perf lm-sensors lsof man-db ndisc6 netcat-openbsd openssh-server python resolvconf rsync screen smartmontools socat strace sudo systemd-coredump vim wget
### Boot loader installation
# This is fairly safe to set, it makes grub install automatically to the MBR
# if no other operating system is detected on the machine.
d-i grub-installer/only_debian boolean true
# To install to the first device (assuming it is not a USB stick):
d-i grub-installer/bootdev string default
...@@ -3,8 +3,9 @@ ...@@ -3,8 +3,9 @@
# provide ifconfig command # provide ifconfig command
apt-get install -y net-tools apt-get install -y net-tools
# change default interface name to eth0 schema # Starting from Debian9 primary interface is not named eth0 anymore
# enable memory hotplug auto configuration # so change default interface name to eth0 schema.
# Also, enable memory hotplug auto configuration
sed -i 's#GRUB_CMDLINE_LINUX=.*#GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 memhp_default_state=online"#' /etc/default/grub sed -i 's#GRUB_CMDLINE_LINUX=.*#GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 memhp_default_state=online"#' /etc/default/grub
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment