Debian provisioning via discovery: custom LVM partitioning scheme

Problem:

If I add

      custom ::                                     \
              4096 4196 4096 $default_filesystem \
                      $lvmok{ }                     \
                      lv_name{ lv_root }               \
                      method{ format }              \
                      format{ }                     \
                      use_filesystem{ }             \
                      $default_filesystem{ }        \
                      mountpoint{ / }               \
              .                                     \
              1024 1124 1024 $default_filesystem{ } \
                      $lvmok{ }                     \
                      lv_name{ lv_home }               \
                      method{ format }              \
                      format{ }                     \
                      use_filesystem{ }             \
                      $default_filesystem{ }        \
                      mountpoint{ /home }           \
              .                                     \
              1024 1124 1024 $default_filesystem{ } \
                      $lvmok{ }                     \
                      lv_name{ lv_tmp }                \
                      method{ format }              \
                      format{ }                     \
                      use_filesystem{ }             \
                      $default_filesystem{ }        \
                      mountpoint{ /tmp }            \
              .                                     \              
              204800 204900 204800 $default_filesystem{ } \
                      $lvmok{ }                     \
                      lv_name{ lv_var }                \
                      method{ format }              \
                      format{ }                     \
                      use_filesystem{ }             \
                      $default_filesystem{ }        \
                      mountpoint{ /var }            \
              .                                     \
              2048 2148 2048 $default_filesystem{ } \
                      $lvmok{ }                     \
                      lv_name{ lv_backup }                \
                      method{ format }              \
                      format{ }                     \
                      use_filesystem{ }             \
                      $default_filesystem{ }        \
                      mountpoint{ /var/backup }            \
              .                                     \        
              2048 2148 2048 $default_filesystem{ } \
                      $lvmok{ }                     \
                      lv_name{ lv_log }                \
                      method{ format }              \
                      format{ }                     \
                      use_filesystem{ }             \
                      $default_filesystem{ }        \
                      mountpoint{ /var/log }            \
              .                                     \                                  
              4096 0% 4096 linux-swap{ }          \
                      $lvmok{ }                     \
                      lv_name{ lv_swap }               \
                      method{ swap }                \
                      format{ }                     \
.

to the ** Custom Partition Table** field in the web UI, having Debian Preseed LVM Partition Table selected, the treseed-installer does not run unattended, but asks for partitioning details.

Expected outcome:

Installer running unattended and creating correct partition layout.

Hello there,

I try to investigate this further. One question: How can I get the generated preseed-file from the proxy?

Hi,

this is the generated file:

# Locale d-i debian-installer/locale string en_US # country and keyboard settings are automatic. Keep them ... # ... for wheezy and newer: d-i keyboard-configuration/xkb-keymap seen true # Static network configuration. d-i preseed/early_command string /bin/killall.sh; /bin/netcfg d-i netcfg/disable_autoconfig boolean true d-i netcfg/dhcp_failed note d-i netcfg/dhcp_options select Configure network manually d-i netcfg/disable_dhcp boolean true d-i netcfg/get_ipaddress string d-i netcfg/get_netmask string 255.255.255.0 d-i netcfg/get_nameservers string 10.10.16.100 10.10.16.10 d-i netcfg/get_gateway string 10.11.50.1 d-i netcfg/confirm_static boolean true # Network configuration d-i netcfg/choose_interface select auto d-i netcfg/get_hostname string new-host.example.org d-i netcfg/get_domain string example.org d-i netcfg/wireless_wep string d-i hw-detect/load_firmware boolean true # Mirror settings d-i mirror/country string manual d-i mirror/http/hostname string ftp.debian.org:80 d-i mirror/http/directory string /debian d-i mirror/http/proxy string d-i mirror/codename string bullseye d-i mirror/suite string bullseye d-i mirror/udeb/suite string bullseye # Time settings d-i clock-setup/utc boolean true d-i time/zone string UTC # NTP d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string 0.debian.pool.ntp.org # Set alignment for automatic partitioning # Choices: cylinder, minimal, optimal #d-i partman/alignment select cylinder custom :: \ 4096 4196 4096 $default_filesystem \ $lvmok{ } \ lv_name{ lv_root } \ method{ format } \ format{ } \ use_filesystem{ } \ $default_filesystem{ } \ mountpoint{ / } \ . \ 1024 1124 1024 $default_filesystem{ } \ $lvmok{ } \ lv_name{ lv_home } \ method{ format } \ format{ } \ use_filesystem{ } \ $default_filesystem{ } \ mountpoint{ /home } \ . \ 1024 1124 1024 $default_filesystem{ } \ $lvmok{ } \ lv_name{ lv_tmp } \ method{ format } \ format{ } \ use_filesystem{ } \ $default_filesystem{ } \ mountpoint{ /tmp } \ . \ 204800 204900 204800 $default_filesystem{ } \ $lvmok{ } \ lv_name{ lv_var } \ method{ format } \ format{ } \ use_filesystem{ } \ $default_filesystem{ } \ mountpoint{ /var } \ . \ 2048 2148 2048 $default_filesystem{ } \ $lvmok{ } \ lv_name{ lv_backup } \ method{ format } \ format{ } \ use_filesystem{ } \ $default_filesystem{ } \ mountpoint{ /var/backup } \ . \ 2048 2148 2048 $default_filesystem{ } \ $lvmok{ } \ lv_name{ lv_log } \ method{ format } \ format{ } \ use_filesystem{ } \ $default_filesystem{ } \ mountpoint{ /var/log } \ . \ 4096 0% 4096 linux-swap{ } \ $lvmok{ } \ lv_name{ lv_swap } \ method{ swap } \ format{ } \ . # User settings d-i passwd/root-password-crypted password $5$WMVBhKjYYzSNdIIn$Wr7UUg.yqoR3VnTQDH362w77ff/EUNvDzrcHKw1Xz9. user-setup-udeb passwd/root-login boolean true d-i passwd/make-user boolean false user-setup-udeb passwd/make-user boolean false # Install minimal task set (see tasksel --task-packages minimal) tasksel tasksel/first multiselect minimal, ssh-server, openssh-server # Install some base packages d-i pkgsel/include string lsb-release wget d-i pkgsel/update-policy select unattended-upgrades d-i pkgsel/upgrade select none popularity-contest popularity-contest/participate boolean false # Boot loader settings #grub-pc grub-pc/hidden_timeout boolean false #grub-pc grub-pc/timeout string 10 d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true d-i finish-install/reboot_in_progress note d-i preseed/late_command string wget -Y off http://foreman.example.org:8000/unattended/finish?token=21cd51d5-2204-453e-b64f-a85a9c72d713 -O /target/tmp/finish.sh && in-target chmod +x /tmp/finish.sh && in-target /tmp/finish.sh

It’s quite terrible to read, as all line breaks have been removed, sorry.