flashcard: Use the correct root partition
Additionally clean up some trailing whitespace.
Change-Id: Icec60ba27bdccba3d9453aada99209b40235a832
diff --git a/flashcard/init b/flashcard/init
index 429f69b..9af18d3 100755
--- a/flashcard/init
+++ b/flashcard/init
@@ -2,14 +2,14 @@
#set -x
# set -e
-function partition_table_image {
- if [[ $1 -gt 7000000000 ]] && [[ $1 -lt 8000000000 ]]; then
- echo "partition-table-8gb.img"
- elif [[ $1 -gt 14000000000 ]] && [[ $1 -lt 17000000000 ]]; then
- echo "partition-table-16gb.img"
- elif [[ $1 -gt 60000000000 ]]; then
- echo "partition-table-64gb.img"
- fi
+function partition_table_image {
+ if [[ $1 -gt 7000000000 ]] && [[ $1 -lt 8000000000 ]]; then
+ echo "partition-table-8gb.img"
+ elif [[ $1 -gt 14000000000 ]] && [[ $1 -lt 17000000000 ]]; then
+ echo "partition-table-16gb.img"
+ elif [[ $1 -gt 60000000000 ]]; then
+ echo "partition-table-64gb.img"
+ fi
}
function log {
@@ -45,7 +45,7 @@
dd if=/tmp/sdcard/boot.img of=/dev/mmcblk0p1
log "* Writing root filesystem..."
-dd if=/tmp/sdcard/rootfs.img of=/dev/mmcblk0p3
+dd if=/tmp/sdcard/rootfs.img of=/dev/mmcblk0p4
log "=== FLASH END! ==="
sync