# ------------------------------------------------------------------------------ # https://wiki.debian.org/DebianInstaller/Preseed #### Contents of the preconfiguration file ### Localization # The values can also be preseeded individually for greater flexibility. d-i debian-installer/language string en_US:en d-i debian-installer/country string FR d-i debian-installer/locale string en_US.UTF-8 # Keyboard selection. d-i keyboard-configuration/xkb-keymap select us # netcfg will choose an interface that has link if possible. This makes it # skip displaying a list if there is more than one interface. d-i netcfg/choose_interface select auto # Any hostname and domain names assigned from dhcp take precedence over # values set here. However, setting the values still prevents the questions # from being shown, even if values come from dhcp. d-i netcfg/get_hostname string unamed d-i netcfg/get_domain string example.com d-i preseed/early_command string kill-all-dhcp; netcfg ### Account setup # Skip creation of a root account (normal user account will be able to # use sudo). d-i passwd/root-login boolean false # To partially create a normal user account. d-i passwd/user-uid string 1000 # The user account will be added to some standard initial groups. To # override that, use this. d-i passwd/user-default-groups string users sudo # You may set this to any valid setting for $TZ; see the contents of # /usr/share/zoneinfo/ for valid values. d-i time/zone string Etc/UTC # Controls whether to use NTP to set the clock during the install d-i clock-setup/ntp boolean true ### Partitioning ## Partitioning example # If the system has free space you can choose to only partition that space. # This is only honoured if partman-auto/method (below) is not set. # d-i partman-auto/disk string /dev/sda d-i partman-auto/method string regular # You can choose one of the three predefined partitioning recipes: # - atomic: all files in one partition d-i partman-auto/choose_recipe select atomic d-i partman-auto/purge_lvm_from_device boolean true d-i partman-basicfilesystems/no_swap boolean false d-i partman-auto/expert_recipe string \ root :: \ 6000 30 -1 ext4 \ $primary{ } $bootable{ } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ / } \ label{ root } \ . \ # This makes partman automatically partition without confirmation, provided # that you told it what to do using one of the methods above. 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 d-i partman-md/confirm boolean true ### Base system installation d-i base-installer/install-recommends boolean true ### Apt setup d-i apt-setup/use_mirror boolean false d-i apt-setup/contrib boolean true ### cdrom disabling d-i apt-setup/cdrom/set-first boolean false d-i apt-setup/cdrom/set-next boolean false d-i apt-setup/cdrom/set-failed boolean false ### Package selection tasksel tasksel/first multiselect standard ssh-server # Individual additional packages to install # from roles/apt/defaults/main.yml, variable apt__base_packages d-i pkgsel/include string openssh-server python3-apt gnupg lsb-release qemu-guest-agent # Whether to upgrade packages after debootstrap. # Allowed values: none, safe-upgrade, full-upgrade d-i pkgsel/upgrade select none # Some versions of the installer can report back on what software you have # installed, and what software you use. popularity-contest popularity-contest/participate boolean false # 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 # This one makes grub-installer install to the MBR if it also finds some other # OS, which is less safe as it might not be able to boot that other OS. d-i grub-installer/with_other_os boolean false # Due notably to potential USB sticks, the location of the MBR can not be # determined safely in general, so this needs to be specified: d-i grub-installer/bootdev string /dev/sda # Use the following option to add additional boot parameters for the # installed system (if supported by the bootloader installer). # Note: options passed to the installer will be added automatically. #d-i debian-installer/add-kernel-opts string nousb ### Finishing up the installation # During installations from serial console, the regular virtual consoles # (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next # line to prevent this. d-i finish-install/keep-consoles boolean true d-i preseed/late_command string in-target sed "/cdrom/d; $ a deb http://deb.debian.org/debian/ bullseye main contrib" -i /etc/apt/sources.list ; in-target sed 's/1000:1000/1000:100/' -i /etc/passwd; in-target sed "s/debian/noname/" -i /etc/hostname; in-target sed "s/debian/noname/" -i /etc/hosts d-i cdrom-detect/eject boolean true # Avoid that last message about the install being complete. d-i finish-install/reboot_in_progress note