anchor.diff:      ## Actual creating logical volumes in %post section
       #######################################
   echo "%post --nochroot" > /tmp/post_partition.ks
  +echo "set -x -v" >> /tmp/post_partition.ks
  +echo "exec 1>/mnt/sysimage/root/post_partition.log 2>&1" >> /tmp/post_partition.ks
       #for $lv in $post_logical_volumes
   echo "$lv" >> /tmp/post_partition.ks
       #end for
  
positive.code:     #set $drives = ",".join($grub_drives)
  echo "bootloader --location=mbr --driveorder=$drives --append=' biosdevname=0 crashkernel=none'" > /tmp/bootloader.ks
      ##
  #end if
  
negative.code:                 ## embed its code later, useable for legacy boot.
                  ## May be way smaller, but be aware that the parted may
                  ## shrink 1M partition to zero at some disks and versions.
                  ## The following two lines are for future.
                  ## $parted_commands.append("parted -a minimal -s /dev/%s unit MB mkpart primary 0 24M" % $space_id)
                  ## $parted_commands.append("parted -s /dev/%s set 1 bios_grub on" % $space_id)
                  ## Create partition for the EFI boot, minimum size is 100M,
                  ## recommended is 200M, with fat32 and future mountpoint in
                  ## the /boot/efi
                  ## There is also '/usr/sbin/parted -s /dev/sda set 2 boot on'
                  ## which is strictly needed for EFI boot itself.
                  ## The following two lines are for future.
                  ## $parted_commands.append("parted -a minimal -s /dev/%s unit MB mkpart primary fat32 24M 300M" % $space_id)
                  ## $parted_commands.append("parted -s /dev/%s set 2 boot on" % $space_id)
                  #######################################
                  ## Installing bootloader
                  #######################################
                  $grub_drives.append("\$(basename `readlink -f /dev/%s`)" % $space_id)
                  $custom_grub_drives.append("`readlink -f /dev/%s`" % $space_id)
              #end if
              #######################################
              ## Configuring plain partitions
  