=== modified file 'growroot/scripts/local-bottom/growroot' --- growroot/scripts/local-bottom/growroot 2013-01-28 15:09:25 +0000 +++ growroot/scripts/local-bottom/growroot 2014-01-08 17:31:41 +0000 @@ -42,6 +42,13 @@ done partnum=${rootdev#${rootdisk}} +# account for devnameNpP devices (like mmcblk0p1). +if [ "${rootdisk%p}" != "${rootdisk}" ] && + [ -b "${rootdisk%p}" ]; then + rootdisk="${rootdisk%p}" + partnum=${partnum#p} +fi + # if the basename of the root device (ie 'xvda1' or 'sda1') exists # in /sys/block/ then it is a block device, not a partition # (xen xvda1 is an example of such a funny named block device)