Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Preseeding help needed (d-i partman-auto)

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
foobarry
Posts: 5
Joined: 2019-08-02 15:56

Preseeding help needed (d-i partman-auto)

#1 Post by foobarry »

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
###

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

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

#2 Post by Head_on_a_Stick »

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

foobarry
Posts: 5
Joined: 2019-08-02 15:56

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

#3 Post by foobarry »

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 } ).

Post Reply