Resize root only for mmc
This commit is contained in:
parent
e107bcbe92
commit
2fc39b6c39
|
@ -6,7 +6,9 @@ if [ ! -e /etc/rootpt-resize ] \
|
||||||
then
|
then
|
||||||
ROOT_BLK="$(readlink -f /sys/dev/block/"$(awk -e \
|
ROOT_BLK="$(readlink -f /sys/dev/block/"$(awk -e \
|
||||||
'$9=="/dev/root"{print $3}' /proc/self/mountinfo)")"
|
'$9=="/dev/root"{print $3}' /proc/self/mountinfo)")"
|
||||||
ROOT_DISK="/dev/$(basename "${ROOT_BLK%/*}")"
|
DEV_NAME=$(basename "${ROOT_BLK%/*}")
|
||||||
|
[ ${DEV_NAME%%[0-9]*} == mmcblk ] || exit 1
|
||||||
|
ROOT_DISK="/dev/${DEV_NAME}"
|
||||||
ROOT_PART="${ROOT_BLK##*[^0-9]}"
|
ROOT_PART="${ROOT_BLK##*[^0-9]}"
|
||||||
parted -l ---pretend-input-tty << EOI
|
parted -l ---pretend-input-tty << EOI
|
||||||
ok
|
ok
|
||||||
|
|
Loading…
Reference in New Issue
Block a user