#_preseed_V1 # Lower the priority so that the installer will ask the hostname # https://unix.stackexchange.com/q/563009 d-i debconf/priority select high # B.5.1 Comandi da eseguire prima di avviare l'installer # https://www.debian.org/releases/trixie/amd64/apbs05.it.html#preseed-hooks # # - Riavvia netcfg in modo da configurare i parametri di rete # (https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-network) d-i preseed/early_command string \ kill-all-dhcp; netcfg # B.4.1 Locale # https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-l10n d-i debian-installer/locale string en_US.UTF-8 d-i keyboard-configuration/xkb-keymap select it # B.4.3 Rete # https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-network d-i netcfg/choose_interface select auto d-i netcfg/disable_autoconfig boolean true d-i netcfg/confirm_static boolean true d-i netcfg/get_domain string fermimn.it d-i hw-detect/firmware-lookup string never # B.4.5 Mirror # https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-mirror d-i mirror/protocol string http d-i mirror/country string manual d-i mirror/http/hostname string deb.debian.org d-i mirror/http/directory string /debian d-i mirror/http/proxy string # B.4.6 Account # https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-account d-i passwd/make-user boolean false d-i passwd/root-password password ChangeMePlz d-i passwd/root-password-again password ChangeMePlz # B.4.7 Orologio e fuso orario # https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-time d-i clock-setup/utc boolean true d-i time/zone string UTC d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string pool.ntp.otg #### B.4.8 Partizionamento #### https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-partman ### ###### 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/init_automatically_partition select biggest_free ### #### Alternatively, you may specify a disk to partition. If the system has only #### one disk the installer will default to using that, but otherwise the device #### name must be given in traditional, non-devfs format (so e.g. /dev/sda #### and not e.g. /dev/discs/disc0/disc). #### For example, to use the first SCSI/SATA hard disk: ####d-i partman-auto/disk string /dev/sda #### In addition, you'll need to specify the method to use. #### The presently available methods are: #### - regular: use the usual partition types for your architecture #### - lvm: use LVM to partition the disk #### - crypto: use LVM within an encrypted partition ###d-i partman-auto/method string lvm ### #### You can define the amount of space that will be used for the LVM volume #### group. It can either be a size with its unit (eg. 20 GB), a percentage of #### free space or the 'max' keyword. ###d-i partman-auto-lvm/guided_size string max ### #### If one of the disks that are going to be automatically partitioned #### contains an old LVM configuration, the user will normally receive a #### warning. This can be preseeded away... ###d-i partman-lvm/device_remove_lvm boolean true #### The same applies to pre-existing software RAID array: ###d-i partman-md/device_remove_md boolean true #### And the same goes for the confirmation to write the lvm partitions. ###d-i partman-lvm/confirm boolean true ###d-i partman-lvm/confirm_nooverwrite boolean true ### #### You can choose one of the predefined partitioning recipes: #### - atomic: all files in one partition #### - home: separate /home partition #### - multi: separate /home, /var, and /tmp partitions #### - server: separate /var and /srv partitions; swap limitted to 1G #### - small_disk: scheme dedicated to small harddrives (under 10GB) ###d-i partman-auto/choose_recipe select atomic ### #### Or provide a recipe of your own... #### If you have a way to get a recipe file into the d-i environment, you can #### just point at it. ####d-i partman-auto/expert_recipe_file string /hd-media/recipe ### #### If not, you can put an entire recipe into the preconfiguration file in one #### (logical) line. This example creates a small /boot partition, suitable #### swap, and uses the rest of the space for the root partition: ####d-i partman-auto/expert_recipe string \ #### boot-root :: \ #### 40 50 100 ext3 \ #### $primary{ } $bootable{ } \ #### method{ format } format{ } \ #### use_filesystem{ } filesystem{ ext3 } \ #### mountpoint{ /boot } \ #### . \ #### 500 10000 1000000000 ext3 \ #### method{ format } format{ } \ #### use_filesystem{ } filesystem{ ext3 } \ #### mountpoint{ / } \ #### . \ #### 64 512 300% linux-swap \ #### method{ swap } format{ } \ #### . ### #### The full recipe format is documented in the file partman-auto-recipe.txt #### included in the 'debian-installer' package or available from D-I source #### repository. This also documents how to specify settings such as file #### system labels, volume group names and which physical devices to include #### in a volume group. ### ##### Partitioning for EFI #### If your system needs an EFI partition you could add something like #### this to the recipe above, as the first element in the recipe: #### 538 538 1075 free \ #### $iflabel{ gpt } \ #### $reusemethod{ } \ #### method{ efi } \ #### format{ } \ #### . \ #### #### The fragment above is for the amd64 architecture; the details may be #### different on other architectures. The 'partman-auto' package in the #### D-I source repository may have an example you can follow. ### #### 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 ### #### Force UEFI booting ('BIOS compatibility' will be lost). Default: false. ####d-i partman-efi/non_efi_system boolean true #### Ensure the partition table is GPT - this is required for EFI ####d-i partman-partitioning/choose_label select gpt ####d-i partman-partitioning/default_label string gpt ### #### When disk encryption is enabled, skip wiping the partitions beforehand. ####d-i partman-auto-crypto/erase_disks boolean false ### ##### Partitioning using RAID #### The method should be set to "raid". ####d-i partman-auto/method string raid #### Specify the disks to be partitioned. They will all get the same layout, #### so this will only work if the disks are the same size. ####d-i partman-auto/disk string /dev/sda /dev/sdb ### #### Next you need to specify the physical partitions that will be used. ####d-i partman-auto/expert_recipe string \ #### multiraid :: \ #### 1000 5000 4000 raid \ #### $primary{ } method{ raid } \ #### . \ #### 64 512 300% raid \ #### method{ raid } \ #### . \ #### 500 10000 1000000000 raid \ #### method{ raid } \ #### . ### #### Last you need to specify how the previously defined partitions will be #### used in the RAID setup. Remember to use the correct partition numbers #### for logical partitions. RAID levels 0, 1, 5, 6 and 10 are supported; #### devices are separated using "#". #### Parameters are: #### \ #### ### ####d-i partman-auto-raid/recipe string \ #### 1 2 0 ext3 / \ #### /dev/sda1#/dev/sdb1 \ #### . \ #### 1 2 0 swap - \ #### /dev/sda5#/dev/sdb5 \ #### . \ #### 0 2 0 ext3 /home \ #### /dev/sda6#/dev/sdb6 \ #### . ### #### For additional information see the file partman-auto-raid-recipe.txt #### included in the 'debian-installer' package or available from D-I source #### repository. ### #### This makes partman automatically partition without confirmation. ###d-i partman-md/confirm boolean true ###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 ### ##### Controlling how partitions are mounted #### The default is to mount by UUID, but you can also choose "traditional" to #### use traditional device names, or "label" to try filesystem labels before #### falling back to UUIDs. ####d-i partman/mount_style select uuid # B.4.9 Installazione del sistema base # https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-base-installer d-i base-installer/install-recommends boolean false d-i base-installer/kernel/image string linux-image-amd64 # B.4.10 APT # https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-apt d-i apt-setup/disable-cdrom-entries boolean true d-i apt-setup/cdrom/set-first boolean false d-i apt-setup/non-free-firmware boolean false d-i apt-setup/non-free boolean false d-i apt-setup/contrib boolean false d-i apt-setup/services-select multiselect security, updates d-i apt-setup/security_host string security.debian.org # B.4.11 Selezione di paccheti # https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-pkgsel d-i pkgsel/run_tasksel boolean false d-i pkgsel/include string openssh-server python3 d-i pkgsel/upgrade select full-upgrade popularity-contest popularity-contest/participate boolean false # B.4.12 Installazione di GRUB # https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-bootloader d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true d-i grub-installer/bootdev string default # B.4.13 Terminare l'installazione # https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-finish d-i finish-install/reboot_in_progress note d-i debian-installer/exit/poweroff boolean true # B.5.1 Comandi da eseguire dopo aver avviato l'installer # https://www.debian.org/releases/trixie/amd64/apbs05.it.html#preseed-hooks #d-i preseed/late_command string ls /target