anchor.diff:  
       sectorsToBytes() {
         echo $(( "$1" * 512  ))
  +    }
  +
  +    # Given lines of numbers, adds them together
  +    sum_lines() {
  +      local acc=0
  +      while read -r number; do
  +        acc=$((acc+number))
  +      done
  +      echo "$acc"
       }
   
       mkdir $out
  
positive.code: 
      ${if diskSize == "auto" then ''
        ${if partitionTableType == "efi" || partitionTableType == "hybrid" then ''
          additionalSpace=$(( ($(numfmt --from=iec '${additionalSpace}') + $(numfmt --from=iec '${bootSize}')) / 1000 ))
        '' else ''
          additionalSpace=$(( $(numfmt --from=iec '${additionalSpace}') / 1000 ))
        ''}
        diskSize=$(( $(set -- $(du -d0 $root); echo "$1") + $additionalSpace ))
        truncate -s "$diskSize"K $diskImage
      '' else ''
        truncate -s ${toString diskSize}M $diskImage
      ''}
  
negative.code: 
    closureInfo = pkgs.closureInfo { rootPaths = [ config.system.build.toplevel channelSources ]; };
  
    blockSize = toString (4 * 1024); # ext4fs block size (not block device sector size)
  
    prepareImage = ''
      export PATH=${binPath}
  
  