1

I want to create a preseed file that will automatically choose the disc (/dev/nvme0n1 or /dev/sda1) and create the partitions without approval.

So far, it is detected the disk, but I need to select "YES," and after that, I need to select "YES" for the partition (attached images).

    # -------- Partitioning --------
d-i partman/unmount_active                                  boolean     true
d-i partman-auto/disk                                       string      /dev/sda
d-i partman-auto/method                                     string      regular
d-i partman-auto/choose_recipe                              select      atomic
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-auto/method                                     string      crypto
d-i partman-crypto/passphrase                               password    Trax2020
d-i partman-crypto/passphrase-again                         password    Trax2020
d-i partman-auto-lvm/guided_size                            string      max

grub boot loader

d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true

Images:

https://ibb.co/6RW5qrZ

https://ibb.co/x5rk2W2

(the images are more than 2M, so I can't upload it to here)

Organic Marble
  • 23,641
  • 15
  • 70
  • 122
  • Related: https://askubuntu.com/questions/1313899/how-to-create-an-unattended-install-of-ubuntu-mate-20-04 – Raffa Mar 11 '21 at 14:07

1 Answers1

0

If you want to know the exact debconf option that is causing user interaction then add DEBCONF_DEBUG=5 to the kernel boot parameters. This will cause debconf to print much more detail about the current settings of each variable and about its progress through each package's installation scripts. The debconf logs will be in the installer syslog file and printed on the Alt-F4 terminal.

When the installer stops to prompt you, hit Alt-F4 (use Alt-F1 to get back to the main installer terminal) and the missing setting should be printed at the bottom of the screen and look something like

debconf: --> GET partman-partitioning/default_label

If I had to guess, you might be missing a label option. My preseed includes these

d-i partman-partitioning/choose_label string gpt
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman-partitioning/default_label string gpt

Links