[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Reusing partition lvm preseed



Hello

I try in a preseed installation to reuse an existing lvm partition (for /home). The goal is to have a preseed able to reinstall the os while keeping /home intact.

Currently the preseed install can't mount the diferent lvm partition, so the installation stop because of none root partition 

Does somebody can help me ?
( sorry for my english )

This is my partman preseed:

d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean false
#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/new_vg_name string vg00
d-i partman-auto/purge_lvm_from_device boolean true

d-i partman-auto/expert_recipe string                         \
      boot-root ::                                            \
              500 300 1024 ext4                               \
                      $primary{ }                             \
                      $bootable{ }                            \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ ext4 }    \
                      mountpoint{ /boot }                     \
                      options/noatime{ noatime }              \
              .                                               \
              1024 4000 1024 ext4                         \
                      $lvmok{ }                               \
                      method{ lvm } format{ }              \         
                      use_filesystem{ } filesystem{ ext4 } \
              in_vg{ vg00 }                      \
                      mountpoint{ / }                         \
                      options/noatime{ noatime }              \
                      lv_name{ lv_root }                      \
              .                                               \
              2048 100 2048 ext4                          \
                      $lvmok{ }                               \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ ext4 } \
              in_vg{ vg00 }                          \
              mountpoint{ /var }                      \
                      options/noatime{ noatime }              \
                      lv_name{ lv_var }                       \
              .                                               \
              1024 3000 1024 ext4                         \
                     $lvmok{ }                               \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ ext4 } \
              in_vg{ vg00 }\
                      mountpoint{ /usr }                      \
                      options/noatime{ noatime }              \
                      lv_name{ lv_usr }                       \
              .                                               \
              1024 100 1024 ext4                        \
                      $lvmok{ }                               \
                      method{ format } format{ }               \
                      use_filesystem{ } filesystem{ ext4 } \
              in_vg{ vg00 }                         \
                      mountpoint{ /home }                     \
                      options/noatime{ noatime }              \
                      lv_name{ lv_home }                      \
              .                                               \
              512 1 512 linux-swap                          \
                      $lvmok{ }                               \
                      method{ format } format{ }                \
                      lv_name{ lv_swap }                      \
              .

d-i partman-auto/choose_recipe select boot-root
 d-i partman-lvm/confirm_nooverwrite boolean true
 d-i partman-lvm/confirm boolean true
d-i partman/confirm_write_new_label 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 false



Reply to: