I have tried multiple examples but LVM size are not getting created as mentioned in expert_recipe and moreover partitions /opt and /var/tmp is getting missed while creating Image. Below is sample code for expert_recipe which I am using. Any suggestion/feedback will be helpful.
I have tried multiple examples but LVM size are not getting created as mentioned in expert_recipe and moreover partitions /opt and /var/tmp is getting missed while creating Image. Below is sample code for expert_recipe which I am using. Any suggestion/feedback will be helpful.
boot-root :: \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem { } filesystem{ ext4 } \
mountpoint{ /boot } \
$defaultignore { } \
method{ lvm } \
device{ /dev/sda } \
vg_name{ vgroot } \
$lvmok{ } \
in_vg{ vgroot } \
lv_name{ lvopt } \
method{ lvm } format{ } \
use_filesystem { } filesystem{ ext4 } \
mountpoint{ /opt } \
$lvmok{ } \
in_vg{ vgroot } \
lv_name{ lvhome } \
method{ lvm } format{ } \
use_filesystem { } filesystem{ ext4 } \
mountpoint{ /home } \
$lvmok{ } \
in_vg{ vgroot } \
lv_name{ lvvar } \
method{ lvm } format{ } \
use_filesystem { } filesystem{ ext4 } \
mountpoint{ /var } \
$lvmok{ } \
in_vg{ vgroot } \
lv_name{ lvtmp } \
method{ lvm } format{ } \
use_filesystem { } filesystem{ ext4 } \
mountpoint{ /tmp } \
$lvmok{ } \
in_vg{ vgroot } \
lv_name{ lvvartmp } \
method{ lvm } format{ } \
use_filesystem { } filesystem{ ext4 } \
mountpoint{ /var/tmp } \
$lvmok{ } \
in_vg{ vgroot } \
lv_name{ lvswap } \
method{ swap } format{ } \
$lvmok{ } \
in_vg{ vgroot } \
lv_name{ lvroot } \
method{ lvm } format{ } \
use_filesystem { } filesystem{ ext4 } \
mountpoint{ / } \
1024 10 1024 ext4 \
. \
42000 11 42000 ext4 $primary{ } \
. \
4000 20 5000 ext4 \
. \
1900 60 2000 ext4 \
. \
7000 30 8000 ext4 \
. \
4000 40 5000 ext4 \
. \
4000 50 5000 ext4 \
. \
2000 12 2000 linux-swap \
. \
9000 15 10000 ext4 \
. \