Resolved the following issues:

Autoresize partitions is not working:
1) grep error during autoresize
2) can not find boot partition to exclude from resize.
   (it is not reliable to assume that the boot flag in
   partition table is set.)

I did test this modification in one situation and it solved the problem for me.
Line 34,35: The "/boot" partition to exclude from resizing will not be found if the boot-flag in the partition table isn't set. Setting the boot-flag in Linux is not mandatory (it is originally for Microsoft OS's).
That is why it is not reliable to only test on the 6th field of the disklayout.conf file.
What I do is testing for "fs <mountpoint>" which is more reliable.