Skip to content
Permalink
Browse files

PART_START calculation

  • Loading branch information...
nisenbeck committed Jul 12, 2015
1 parent f18514b commit 3d1276f6ecb2c5ee14d4f3876c2adf2e999ab043
Showing with 1 addition and 1 deletion.
  1. +1 −1 raspi-config
@@ -59,7 +59,7 @@ do_expand_rootfs() {
fi

# Get the starting offset of the root partition
PART_START=$(parted /dev/mmcblk0 -ms unit s p | grep "^${PART_NUM}" | cut -f 2 -d:)
PART_START=$(parted /dev/mmcblk0 -ms unit s p | grep "^${PART_NUM}" | cut -f 2 -d: | sed 's/[^0-9]*//g')
[ "$PART_START" ] || return 1
# Return value will likely be error for fdisk as it fails to reload the
# partition table because the root fs is mounted

0 comments on commit 3d1276f

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