diff --git a/system_setup/install.sh b/system_setup/install.sh index df3b9a8..658a156 100755 --- a/system_setup/install.sh +++ b/system_setup/install.sh @@ -98,7 +98,7 @@ collect_partitions() { [[ "$LABEL" == "$OEMDRV_LABEL" ]] && continue [[ -z "$PKNAME" ]] && continue - local disk="/dev/$PKNAME" + local disk="/dev/${PKNAME##*/}" local pnum pnum=$(cat /sys/class/block/"${NAME##/dev/}"/partition 2>/dev/null) || continue