Seems that the problem come from the script that call the function procsfdisk. In the definition (procsfdisk.awk) you can find:
# This is where it all begins (See->BEGIN) :)
BEGIN {
# Arguments - Use "-v var=val" when calling this script
# CHUNK_SIZE;
# MIN_START;
And in the script partition-funcs.sh, in the same directory, you can find that the call to the procsfdisk function:
local awkArgs="-v SECTOR_SIZE=$sectorsize CHUNK_SIZE=$chunksize -v MIN_START=$minstart"
# process with external awk script
/usr/share/fog/lib/procsfdisk.awk $awkArgs $data
And as you can see, there is a missing “-v”. Perhaps that’s the problem.