Merge pull request #2758 from adamg88/fix-resize

busybox: fix resizing nvme parititons on orange pi 5
This commit is contained in:
fewtarius 2024-01-29 22:14:15 -05:00 committed by GitHub
commit eef64cd730
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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")