mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 01:48:42 +09:00
Fix to 'firstboot.sh' to resize the partiton of '/dev/sd*'
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: Id816a6dd1dd001f73e119d285f9d62ef1f3a4a7d
This commit is contained in:
@@ -7,7 +7,11 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
|
||||
rootdev=`blkid -U @@UUID_ROOTFS@@`
|
||||
|
||||
dev=${rootdev%??}
|
||||
case ${rootdev} in
|
||||
/dev/mmcblk*) dev=${rootdev%??} ;;
|
||||
*) dev=${rootdev%?} ;;
|
||||
esac
|
||||
|
||||
lba_start=`fdisk -l ${dev} | grep p2 | awk '{print $2}'`
|
||||
lba_finish=$((`fdisk -l ${dev} | grep Disk | grep sectors | awk '{printf $7}'` - 2048))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user