Bug in setup_sdcard.sh

Hi

I am very new in this community. However, I found there is a bug in
setup_sdcard.sh

In line 178 of this file, we can see the following line:

FDISK=$(sudo fdisk -l | grep "[${DISK_NAME}] ${MMC}" | awk '{print
$2}')

we have to change it to this to receive a correct report:
FDISK=$(sudo fdisk -l 2>err.log | grep "[${DISK_NAME}] ${MMC}" | awk
'{print $2}')

The reason is obvious. grep is processing only standard output, but
error output also are being collected in the FDISK variable.

When I use your version the value of FDISK is:
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
/dev/sdb:

which it should be only:
/dev/sdb:

The first two lines are because non-related errors on machine's
partitions.

I did not know where should I report these bugs.

Regards,

Ali

Hello,

Hi

I am very new in this community. However, I found there is a bug in
setup_sdcard.sh

In line 178 of this file, we can see the following line:

FDISK=$(sudo fdisk -l | grep "[${DISK_NAME}] ${MMC}" | awk '{print
$2}')

we have to change it to this to receive a correct report:
FDISK=$(sudo fdisk -l 2>err.log | grep "[${DISK_NAME}] ${MMC}" | awk
'{print $2}')

The reason is obvious. grep is processing only standard output, but
error output also are being collected in the FDISK variable.

When I use your version the value of FDISK is:
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
/dev/sdb:

which it should be only:
/dev/sdb:

The first two lines are because non-related errors on machine's
partitions.

Sure I'll add the tweaks when i return home this weekend... Anything
currently released is too late of course, but the next release's will
of course have it..

I did not know where should I report these bugs.

Yeah, there's no specific place, this list is fine...

Head revision when generating the demo images is here:

http://bazaar.launchpad.net/~beagleboard-kernel/+junk/image-builder/annotate/head:/tools/setup_sdcard.sh

Regards,