anchor.diff:        echo "$acc"
       }
   
  +    mebibyte=$(( 1024 * 1024 ))
  +
       # Approximative percentage of reserved space in an ext4 fs over 512MiB.
       # 0.05208587646484375
       #  × 1000, integer part: 52
  
positive.code:       requiredFilesystemSpace=$(( diskUsage + fudge ))
  
        diskSize=$(( requiredFilesystemSpace  + additionalSpace ))
        truncate -s "$diskSize" $diskImage
  
        printf "Automatic disk size...\n"
  
negative.code:         # Add the GPT at the end
          gptSpace=$(( 512 * 34 * 1 ))
          # And include the bios_grub partition; the ext4 partition starts at 2MB exactly.
          reservedSpace=$(( gptSpace + 2 * mebibyte ))
        '' else if partitionTableType == "legacy" then ''
          # Add the 1MiB aligned reserved space (includes MBR)
          reservedSpace=$(( mebibyte ))
        '' else ''
          reservedSpace=0
        ''}
  