anchor.diff:      #if $clearpart_drives
           #set $clearpart_drives_string = ','.join(list($clearpart_drives))
   echo "clearpart --initlabel --all --drives=$clearpart_drives_string" >> /tmp/partition.ks
  +        #for $d in list($clearpart_drives)
  +/usr/sbin/parted -s "/dev/$d" mklabel gpt
  +        #end for
       #end if
       ##
       ## Creating bare partitions
  
positive.code:             ## Parsing logical volumes
              #if $space_type == "vg" and $volume_type == "lv"
                  #set $volume_mount = $volume.get("mount")
                  #set $volume_size = $int($volume.get("size") or 0) / 1024 ** 2
                  #set $volume_name = $volume.get("name")
                  #if $volume_size > 0
                      $logical_volumes.append("logvol %s --vgname=%s --size=%s --name=%s" % ($volume_mount, $space_id, $volume_size, $volume_name))
                  #end if
              #end if
              ##
  
negative.code: echo "$lv" >> /tmp/partition.ks
      #end for
      ##
      ## Creating logical volumes in %post section
  echo "%post --nochroot" > /tmp/post_partition.ks
      #for $lv in $post_logical_volumes
  echo "$lv" >> /tmp/post_partition.ks
      #end for
      ##
      ##
  #end if
  