Code: Alles auswählen
cat << EOF > ./preseed.cfg
[...]
d-i partman-basicfilesystems/choose_label string gpt
d-i partman-basicfilesystems/default_label string gpt
d-i partman-partitioning/choose_label string gpt
d-i partman-partitioning/default_label string gpt
d-i partman/choose_label string gpt
d-i partman/default_label string gpt
d-i partman/alignment string optimal
d-i partman-auto/method string regular
d-i partman-auto/disk string /dev/sda /dev/nvme0n1
d-i partman-auto-lvm/guided_size string max
d-i partman-auto-lvm/new_vg_name string vg0
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/device_remove_lvm_span boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-lvm/confirm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-md/confirm_nooverwrite boolean true
d-i partman-md/confirm boolean true
d-i partman-auto/choose_recipe select pvs
d-i partman-auto/expert_recipe string \
pvs :: \
1 1 1 free \
device{ /dev/sda } \
\$lvmignore{ } \
\$gptonly{ } \
\$primary{ } \
\$bios_boot{ } \
method{ biosgrub } \
. \
100 300 -1 ext4 \
device{ /dev/sda } \
\$lvmignore{ } \
\$gptonly{ } \
\$primary{ } \
\$bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
label{ Boot } \
mountpoint{ /boot } \
. \
10000 25000 104857600 lvm \
device{ /dev/nvme0n1 } \
\$defaultignore{ } \
\$primary{ } \
method{ lvm } format{ } \
vg_name{ vg0 } \
. \
10000 25000 104857600 ext4 \
device{ /dev/nvme0n1 } \
\$lvmok{ } \
lv_name{ RootFS } \
label{ RootFS } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
. \
2048 5120 5120 linux-swap \
device{ /dev/nvme0n1 } \
\$lvmok{ } \
lv_name{ SwapFS } \
label{ SwapFS } \
method{ swap } format{ } \
. \
10000 25000 -1 ext4 \
device{ /dev/nvme0n1 } \
\$lvmok{ } \
lv_name{ VirtualiZationFS } \
label{ VirtualiZationFS } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /var/lib/vz } \
.
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select Finish
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm boolean true
d-i partman/mount_style select uuid
### GRUB Bootloader
d-i grub-installer/only_debian boolean true
d-i grub-installer/bootdev string default
d-i grub-installer/bootdev string /dev/sda
d-i grub-installer/grub2_installer_skip boolean true
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
[...]
EOF