Hi,
I am trying to get my preseed partitioning expert recipe working using LVM. However, i always run into some type of error, i have build close to 100 images with different configurations, eg.: Failed to partition selected disk: This happened because the selected recipe does not contain any partition that can be created on LVM volumes and / or no root file system: No root file system is defined.
Would anybody be able to point me in the right direction?
This is my best effort configuration:
Thank you in advance
I am trying to get my preseed partitioning expert recipe working using LVM. However, i always run into some type of error, i have build close to 100 images with different configurations, eg.: Failed to partition selected disk: This happened because the selected recipe does not contain any partition that can be created on LVM volumes and / or no root file system: No root file system is defined.
Would anybody be able to point me in the right direction?
This is my best effort configuration:
Code:
### Partitioning# Use LVM, and wipe out anything that already existsd-i partman-auto/choose_recipe select my-lvm-reciped-i partman-auto/disk string /dev/sdad-i partman-auto/method string lvmd-i partman-auto-lvm/guided_size string maxd-i partman-auto-lvm/new_vg_name string vg0d-i partman/choose_partition select finishd-i partman/confirm boolean trued-i partman/confirm_nooverwrite boolean trued-i partman-lvm/confirm boolean trued-i partman-lvm/confirm_nooverwrite boolean trued-i partman-lvm/device_remove_lvm boolean trued-i partman-md/device_remove_md boolean trued-i partman-partitioning/confirm_write_new_label boolean true# Partitioning schemed-i partman-auto/expert_recipe string \ my-lvm-recipe :: \ 500 500 500 free \ $primary{ } \ method{ efi } \ format{ } \ mountpoint { /boot/efi } \ . \ 500 500 500 ext4 \ $primary{ } \ $bootable{ } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ /boot } \ . \ 40000 40000 40000 ext4 \ $defaultignore{ } \ $primary{ } \ method{ lvm } \ format{ } \ vg_name{ vg0 } \ . \ 10000 10000 10000 ext4 \ $defaultignore{ } \ $lvmok{ } \ in_vg{ vg0 } \ lv_name{ root } \ method{ format } format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ / } \ . \ 10000 10000 10000 ext4 \ $defaultignore{ } \ $lvmok{ } \ in_vg{ vg0 } \ lv_name{ home } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ /home } \ . \ 10000 10000 10000 ext4 \ $defaultignore{ } \ $lvmok{ } \ in_vg{ vg0 } \ lv_name{ var } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ /var } \ . \ 1000 1000 1000 ext4 \ $defaultignore{ } \ $lvmok{ } \ in_vg{ vg0 } \ lv_name{ var.tmp } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ /var/tmp } \ . \ 5000 5000 5000 ext4 \ $defaultignore{ } \ $lvmok{ } \ in_vg{ vg0 } \ lv_name{ var.log } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ /var/log } \ . \ 1000 1000 1000 ext4 \ $defaultignore{ } \ $lvmok{ } \ in_vg{ vg0 } \ lv_name{ var.log.audit } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ /var/log/audit } \ . \ 2000 2000 2000 ext4 \ $defaultignore{ } \ $lvmok{ } \ in_vg{ vg0 } \ lv_name{ tmp } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ /tmp } \ . \ 100 100 100 tmpfs \ $defaultignore{ } \ $lvmok{ } \ in_vg{ vg0 } \ lv_name{ dev.shm } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ tmpfs } \ mountpoint{ /dev/shm } \ options{ size=1G } \ .
Statistics: Posted by 1ucsh — 2024-09-05 13:27 — Replies 0 — Views 28