anchor.diff:                  ## 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.
  -                $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)
  +                ## 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.
  -                $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)
  +                ## 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
  
positive.code:     #set $clearpart_drives = []
      #set $physical_volumes = []
      #set $grub_drives = []
      #set $partitions = []
      #set $volume_groups = {}
      #set $raid_volumes = {}
  
negative.code:             #end for
              #set $num_spares = $len($raid_volumes[$raid_mount]) - 2
              #set $md_name = "md%d" % $mdnum
  ##            #if $num_spares > 0
  ##echo "raid $raid_mount --device $md_name --spares=$num_spares --fstype ext2 --level=RAID1 $ks_raids" >> /tmp/partition.ks
  ##            #else
  echo "raid $raid_mount --device $md_name --fstype ext2 --level=RAID1 $ks_raids" >> /tmp/partition.ks
  ##            #end if
          #end if
          #set $mdnum += 1
      #end for
  