cleanup: sync with omap-image-builder

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/22/head
Robert Nelson 12 years ago
parent fb6f53d9c0
commit 409004d370

@ -1113,12 +1113,12 @@ unmount_all_drive_partitions () {
echo "Unmounting Partitions" echo "Unmounting Partitions"
echo "-----------------------------" echo "-----------------------------"
NUM_MOUNTS=$(mount | grep -v none | grep "$media" | wc -l) NUM_MOUNTS=$(mount | grep -v none | grep "${media}" | wc -l)
## for (i=1;i<=${NUM_MOUNTS};i++) ## for (i=1;i<=${NUM_MOUNTS};i++)
for ((i=1;i<=${NUM_MOUNTS};i++)) for ((i=1;i<=${NUM_MOUNTS};i++))
do do
DRIVE=$(mount | grep -v none | grep "$media" | tail -1 | awk '{print $1}') DRIVE=$(mount | grep -v none | grep "${media}" | tail -1 | awk '{print $1}')
umount ${DRIVE} >/dev/null 2>&1 || true umount ${DRIVE} >/dev/null 2>&1 || true
done done
@ -1133,7 +1133,7 @@ sfdisk_partition_layout () {
echo "Using sfdisk to create partition layout" echo "Using sfdisk to create partition layout"
echo "-----------------------------" echo "-----------------------------"
LC_ALL=C sfdisk --in-order --Linux --unit M "${media}" <<-__EOF__ LC_ALL=C sfdisk --force --in-order --Linux --unit M "${media}" <<-__EOF__
${conf_boot_startmb},${conf_boot_endmb},${sfdisk_fstype},* ${conf_boot_startmb},${conf_boot_endmb},${sfdisk_fstype},*
__EOF__ __EOF__

Loading…
Cancel
Save