Preseeding help needed (d-i partman-auto)

Kernels & Hardware, configuring network, installing services

Preseeding help needed (d-i partman-auto)

Postby foobarry » 2020-01-19 10:21

Debian 10.

I am getting an error message as follows:
Code: Select all
Failed to partition the selected disk
This probably happened because there are too many (primary) partitions in the partition


This is on a clean disk with nothing on it.

Could somebody help me decipher it ? The partitioning component of my preseed file reads as follows:
Code: Select all
### PARTITIONING
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-auto-lvm/guided_size string max
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/mount_style select uuid
d-i partman-auto-lvm/new_vg_name string foo_vg
d-i partman-auto/expert_recipe string boot-root ::      \
                                                        \
  1000 2048 1024 ext4                                   \
  $primary{ } $bootable{ } method{ format } format{ }   \
  use_filesystem{ } filesystem{ ext4 }                  \
  mountpoint{ /boot }                                   \
  .                                                     \
  2048 8192 4096 linux-swap                             \
  $lvmok{ } lv_name{ swap } in_vg { foo_vg }            \
  method{ swap } format{ }                              \
  .                                                     \
  3072 9216 5120 xfs                                    \
  $lvmok{ } lv_name{ root } in_vg { foo_vg }            \
  method{ format } format{ }                            \
  use_filesystem{ } filesystem{ xfs }                   \
  mountpoint{ /tmp }                                    \
  options/nodev{ nodev } options/noexec { noexec }      \
  options/nosuid { nosuid }                             \
  .                                                     \
  28000 10000 -1 xfs                                    \
  $lvmok{ } lv_name{ root } in_vg { foo_vg }            \
  method{ format } format{ }                            \
  use_filesystem{ } filesystem{ xfs }                   \
  mountpoint{ / }                                       \
  .
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
###
foobarry
 
Posts: 3
Joined: 2019-08-02 15:56

Re: Preseeding help needed (d-i partman-auto)

Postby Head_on_a_Stick » 2020-01-19 11:11

Try specifying a GUID partition table: https://gist.github.com/robertstarmer/7 ... reseed-L14
User avatar
Head_on_a_Stick
 
Posts: 11204
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Preseeding help needed (d-i partman-auto)

Postby foobarry » 2020-01-19 16:45

Head_on_a_Stick wrote:Try specifying a GUID partition table: https://gist.github.com/robertstarmer/7 ... reseed-L14


Thanks @Head_on_a_Stick, actually the answer was simpler. I had the same lv_name defined twice (2 x lv_name{ root } ).
foobarry
 
Posts: 3
Joined: 2019-08-02 15:56


Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable