Preseed some expert install questions
This commit is contained in:
		
							parent
							
								
									50ab78be6f
								
							
						
					
					
						commit
						938d69a4ae
					
				| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
 | 
			
		||||
 | 
			
		||||
# Howto use [[[
 | 
			
		||||
## Howto use [[[
 | 
			
		||||
######################################################################
 | 
			
		||||
 | 
			
		||||
## With a PXE boot:
 | 
			
		||||
| 
						 | 
				
			
			@ -11,7 +11,7 @@
 | 
			
		|||
#    APPEND vga=normal initrd=installer/debian/buster/amd64/initrd_firm.gz auto=true interface=auto netcfg/dhcp_timeout=60 netcfg/choose_interface=auto priority=critical preseed/url=tftp://129.20.203.27/installer/debian/buster/amd64/preseed.cfg
 | 
			
		||||
 | 
			
		||||
################################################################## ]]]
 | 
			
		||||
# Localization [[[
 | 
			
		||||
## Localization [[[
 | 
			
		||||
######################################################################
 | 
			
		||||
 | 
			
		||||
## Install Time
 | 
			
		||||
| 
						 | 
				
			
			@ -38,9 +38,13 @@ d-i   keyboard-configuration/xkb-keymap           select      French
 | 
			
		|||
## Network configuration [[[
 | 
			
		||||
######################################################################
 | 
			
		||||
 | 
			
		||||
## Auto-configure networking
 | 
			
		||||
d-i   netcfg/use_autoconfig                       boolean     true
 | 
			
		||||
 | 
			
		||||
## To set a different link detection timeout (default is 3 seconds).
 | 
			
		||||
## Values are interpreted as seconds.
 | 
			
		||||
d-i   netcfg/link_detection_timeout               string      20
 | 
			
		||||
d-i   netcfg/link_wait_timeout                    string      3
 | 
			
		||||
 | 
			
		||||
## If you have a slow dhcp server and the installer times out waiting for
 | 
			
		||||
## it, this might be useful.
 | 
			
		||||
| 
						 | 
				
			
			@ -84,6 +88,9 @@ d-i   mirror/suite                                string
 | 
			
		|||
## Account [[[
 | 
			
		||||
######################################################################
 | 
			
		||||
 | 
			
		||||
## Enable shadow passwords
 | 
			
		||||
d-i   passwd/shadow                               boolean  true
 | 
			
		||||
 | 
			
		||||
## Allow login as root?
 | 
			
		||||
d-i   passwd/root-login                           boolean     true
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -94,7 +101,7 @@ d-i   passwd/root-login                           boolean     true
 | 
			
		|||
d-i   passwd/root-password-crypted                password    $6$ceGTxMxc$gXajYByJna1cfTjaST3TcF0FfrlSAaEcmCiOMq/DBOuD0tlu8VYQosZPgwcFT4bCuODMErU/fgRxZEeu9c10V0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Create a normal user account now?
 | 
			
		||||
## Create a normal user account now?
 | 
			
		||||
d-i   passwd/make-user                            boolean     false
 | 
			
		||||
 | 
			
		||||
## User name
 | 
			
		||||
| 
						 | 
				
			
			@ -152,6 +159,9 @@ d-i partman-auto/purge_lvm_from_device            boolean     true
 | 
			
		|||
d-i partman-lvm/confirm                           boolean     true
 | 
			
		||||
d-i partman-lvm/confirm_nooverwrite               boolean     true
 | 
			
		||||
 | 
			
		||||
## Volume Group/vg name
 | 
			
		||||
d-i partman-auto-lvm/new_vg_name                string  sys
 | 
			
		||||
 | 
			
		||||
## LVM partition
 | 
			
		||||
### This recipe need almost 30Gb free space it's add all <min size>
 | 
			
		||||
###   sda2 (16Gb), lv_* (~14Gb) then it should not count it because
 | 
			
		||||
| 
						 | 
				
			
			@ -258,6 +268,16 @@ d-i   partman/choose_partition                    select      finish
 | 
			
		|||
d-i   partman/confirm                             boolean     true
 | 
			
		||||
d-i   partman/confirm_nooverwrite                 boolean     true
 | 
			
		||||
 | 
			
		||||
################################################################## ]]]
 | 
			
		||||
## Kernel [[[
 | 
			
		||||
######################################################################
 | 
			
		||||
 | 
			
		||||
## Kernel to install
 | 
			
		||||
d-i   base-installer/kernel/image                 select      linux-image-amd64
 | 
			
		||||
 | 
			
		||||
## Drivers to include in the initrd
 | 
			
		||||
d-i   base-installer/initramfs-tools/driver-policy select      most
 | 
			
		||||
 | 
			
		||||
################################################################## ]]]
 | 
			
		||||
## APT configuration // Package selection [[[
 | 
			
		||||
######################################################################
 | 
			
		||||
| 
						 | 
				
			
			@ -268,8 +288,10 @@ d-i   apt-setup/hostname                          string      ftp.fr.debian.org
 | 
			
		|||
d-i   apt-setup/directory                         string      /debian/
 | 
			
		||||
d-i   apt-setup/another                           boolean     false
 | 
			
		||||
d-i   apt-setup/security-updates                  boolean     false
 | 
			
		||||
d-i   apt-setup/services-select                   multiselect security
 | 
			
		||||
d-i   apt-setup/non-free                          boolean     true
 | 
			
		||||
d-i   apt-setup/contrib                           boolean     true
 | 
			
		||||
d-i   apt-setup/enable-source-repositories        boolean     true
 | 
			
		||||
 | 
			
		||||
## Choose packages
 | 
			
		||||
tasksel tasksel/first                             multiselect ssh-server
 | 
			
		||||
| 
						 | 
				
			
			@ -312,9 +334,12 @@ d-i   grub-installer/with_other_os                boolean     true
 | 
			
		|||
 | 
			
		||||
## Since Debian Jessie, the d-i will ask to specify the device for Grub.
 | 
			
		||||
## Should use 'default', to use the default system disk
 | 
			
		||||
#   Fix: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759737
 | 
			
		||||
###   Fix: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759737
 | 
			
		||||
d-i   grub-installer/bootdev                      string      default
 | 
			
		||||
 | 
			
		||||
## Don't force GRUB installation to the EFI removable media path
 | 
			
		||||
d-i   grub-installer/force-efi-extra-removable    boolean     false
 | 
			
		||||
 | 
			
		||||
################################################################## ]]]
 | 
			
		||||
## Finishing up the installation [[[
 | 
			
		||||
######################################################################
 | 
			
		||||
| 
						 | 
				
			
			@ -335,10 +360,11 @@ d-i   cdrom-detect/eject                          boolean     false
 | 
			
		|||
#d-i debian-installer/exit/poweroff boolean true
 | 
			
		||||
 | 
			
		||||
## Execute some last commands
 | 
			
		||||
#in-target wget -O /tmp/latecommand.tar.gz "https://wiki.101010.fr/lib/exe/fetch.php?media=documentation:administration_systeme:latecommand.tar.gz" --no-check-certificate ; \
 | 
			
		||||
d-i preseed/late_command string in-target umount /dev/sys/lv_free ; \
 | 
			
		||||
lvremove -f /dev/sys/lv_free ; \
 | 
			
		||||
in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
 | 
			
		||||
in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; \
 | 
			
		||||
in-target /usr/bin/tftp 129.20.203.27 -c get scripts/latecommand.tar.gz /tmp/latecommand.tar.gz ; \
 | 
			
		||||
in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
 | 
			
		||||
in-target /bin/sh /tmp/latecommand/post.sh
 | 
			
		||||
in-target /bin/sh /tmp/latecommand/post.buster.sh
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue