busybox: fix resizing nvme parititons on orange pi 5
This commit is contained in:
parent
b879a7c2aa
commit
bb3649da12
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue