busybox: fix resizing nvme parititons on orange pi 5

This commit is contained in:
adamg 2024-01-29 02:11:30 +00:00 committed by fewtarius
parent b879a7c2aa
commit bb3649da12
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -22,7 +22,7 @@ if [ -e /storage/.please_resize_me ] ; then
# get the disk. /storage on 2nd partition
PART=$(blkid | awk 'BEGIN {FS=":"} /'$(cat /proc/cmdline | sed -e 's#^.*disk=UUID=##g' -e 's#\ .*$##g')'/ {print $1}')
if [ "$(echo ${PART} | awk '/mmcblk/ {print $1}')" ]
if [ "$(echo ${PART} | awk '/mmcblk/ || /nvme/ {print $1}')" ]
then
DISK=$(echo ${PART} | sed s/p[0-9]//g)
PARTNUM=$(echo ${PART} | sed "s#^.*[0-9]p##g")