Skip to content

Commit 0bab47a

Browse files
committed
Fix resize_rootfs.sh script to use 3rd partition
1 parent 6d68c73 commit 0bab47a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

otherfiles/resize_rootfs.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fi
1010
set -x
1111

1212
DEVICE="/dev/mmcblk0"
13-
PART="2"
13+
PART="3"
1414

1515
resize() {
1616
start=$(fdisk -l ${DEVICE} | grep ${DEVICE}p${PART} | sed 's/*//' | awk '{print $2}')
@@ -20,14 +20,14 @@ resize() {
2020
fdisk ${DEVICE} <<EOF
2121
p
2222
d
23-
2
23+
3
2424
n
2525
p
26-
2
26+
3
2727
$start
2828
2929
a
30-
2
30+
3
3131
w
3232
EOF
3333
set -e

0 commit comments

Comments
 (0)