Skip to content
Permalink
Browse files

Fix bad substitution on ODROID resize

  • Loading branch information...
NEMS Linux
NEMS Linux committed Sep 1, 2019
1 parent 4a891d7 commit 01dea35e11bab2573e8e3f088998b360db20f827
Showing with 1 addition and 1 deletion.
  1. +1 −1 resize_rootfs/odroid-stage1
@@ -10,7 +10,7 @@ function do_resize
echo "Saving the log to $rsflog"
sleep 4

part_start=`/sbin/fdisk -l /dev/$rootdev | grep ${rootdev}p${$rootpart} | awk '{print $2}'`
part_start=`/sbin/fdisk -l /dev/$rootdev | grep ${rootdev}p${rootpart} | awk '{print $2}'`
part_end=$(((`/sbin/fdisk -l /dev/$rootdev | head -n1 | grep -i bytes | awk '{print $5}'`/512)-20))
echo $part_end

0 comments on commit 01dea35

Please sign in to comment.
You can’t perform that action at this time.