Comment 11 for bug 433092

Revision history for this message
ritesh (riteshsharma87) wrote :

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 :: \
              1024 10 1024 ext4 \
                      $primary{ } $bootable{ } \
                      method{ format } format{ } \
                      use_filesystem{ } filesystem{ ext4 } \
                      mountpoint{ /boot } \
              . \
              42000 11 42000 ext4 $primary{ } \
                      $defaultignore{ } \
                      method{ lvm } \
                      device{ /dev/sda } \
                      vg_name{ vgroot } \
              . \
              4000 20 5000 ext4 \
                      $lvmok{ } \
                      in_vg{ vgroot } \
                      lv_name{ lvopt } \
                      method{ lvm } format{ } \
                      use_filesystem{ } filesystem{ ext4 } \
                      mountpoint{ /opt } \
              . \
              1900 60 2000 ext4 \
                      $lvmok{ } \
                      in_vg{ vgroot } \
                      lv_name{ lvhome } \
                      method{ lvm } format{ } \
                      use_filesystem{ } filesystem{ ext4 } \
                      mountpoint{ /home } \
              . \
              7000 30 8000 ext4 \
                      $lvmok{ } \
                      in_vg{ vgroot } \
                      lv_name{ lvvar } \
                      method{ lvm } format{ } \
                      use_filesystem{ } filesystem{ ext4 } \
                      mountpoint{ /var } \
              . \
              4000 40 5000 ext4 \
                      $lvmok{ } \
                      in_vg{ vgroot } \
                      lv_name{ lvtmp } \
                      method{ lvm } format{ } \
                      use_filesystem{ } filesystem{ ext4 } \
                      mountpoint{ /tmp } \
              . \
              4000 50 5000 ext4 \
                      $lvmok{ } \
                      in_vg{ vgroot } \
                      lv_name{ lvvartmp } \
                      method{ lvm } format{ } \
                      use_filesystem{ } filesystem{ ext4 } \
                      mountpoint{ /var/tmp } \
              . \
              2000 12 2000 linux-swap \
                      $lvmok{ } \
                      in_vg{ vgroot } \
                      lv_name{ lvswap } \
                      method{ swap } format{ } \
              . \
              9000 15 10000 ext4 \
                      $lvmok{ } \
                      in_vg{ vgroot } \
                      lv_name{ lvroot } \
                      method{ lvm } format{ } \
                      use_filesystem{ } filesystem{ ext4 } \
                      mountpoint{ / } \
              . \