Confused on Steam Play and Proton? Be sure to check out our guide.
debian installer preseeding
dvd Jan 2, 2018
I'm trying to create a preseed file for my debian installations, but i'm stuck at figuring out the partitioning part. I have the following relevant d-i options set:

d-i partman-auto/method string crypto

d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto-lvm/new_vg_name string vdisk

d-i partman-efi/non_efi_system boolean true

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-auto/choose-recipe select efi-crypto-custom-scheme

d-i partman-auto/expert_recipe string                        \
    efi-crypto-custom-scheme ::                              \
        1 1 1 free                                           \
            $gptonly{ }                                      \
            $primary{ }                                      \
            $bios_boot{ }                                    \
            method{ biosgrub }                               \
        .                                                    \
        512 10 512 fat32                                     \
            $gptonly{ }                                      \
            $primary{ }                                      \
            method{ efi }                                    \
            format{ }                                        \
            $lvmignore{ }                                    \
            mountpoint{ /boot/efi }                          \
        .                                                    \
        512 100 1024 ext4                                    \
            $primary{ } $bootable{ }                         \
            method{ format } format{ }                       \
            use_filesystem{ } filesystem{ ext4 }             \
            mountpoint{ /boot }                              \
        .                                                    \
        2048 100 2048 linux-swap                             \
            $lvmok { } lv_name{ swap }                       \
            in_vg { vdisk }                                  \
            $primary{ }                                      \
            method{ swap } format{ }                         \
        .                                                    \
        5120 100 5120 ext4                                   \
            $lvmok{ } lv_name{ root }                        \
            in_vg { vdisk }                                  \
            $primary{ }                                      \
            method{ format } format{ }                       \
            use_filesystem{ } filesystem{ ext4 }             \
            mountpoint{ / }                                  \
        .                                                    \
        30720 100 30720 ext4                                 \
            $lvmok{ } lv_name{ usr }                         \
            in_vg{ vdisk }                                   \
            $primary{ }                                      \
            method{ format } format{ }                       \
            use_filesystem{ } filesystem{ ext4 }             \
            mountpoint{ /usr }                               \
        .                                                    \
        8192 100 8192 ext4                                   \
            $lvmok{ } lv_name{ var }                         \
            in_vg { vdisk }                                  \
            $primary{ }                                      \
            method{ format } format{ }                       \
            use_filesystem{ } filesystem{ ext4 }             \
            mountpoint{ /var }                               \
        .                                                    \
        8192 100 8192 ext4                                   \
            $lvmok{ } lv_name{ tmp }                         \
            in_vg { vdisk }                                  \
            $primary{ }                                      \
            method{ format } format{ }                       \
            use_filesystem{ } filesystem{ ext4 }             \
            mountpoint{ /tmp }                               \
        .                                                    \
        8192 1000 1000000000 ext4                            \
            $lvmok{ } lv_name{ home }                        \
            in_vg { vdisk }                                  \
            $primary{ }                                      \
            method{ format } format{ }                       \
            use_filesystem{ } filesystem{ ext4 }             \
        .

d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman-md/confirm boolean true
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true

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


Now, as i understand from the docs i found, the above recipe will leave some space for grub near the MBR, create a EFI partition, and a big lvm one, with the lvm partitions each individually encrypted. What i would like to achieve is the opposite, having a big encrypted partition with lvm inside.

One other thing I've yet to figure out is if i can get smartcard support in d-i with preseeding. I'd very much like to just use it to unlock the luks partition.
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.

Buy Games
Buy games with our affiliate / partner links: