Change-Id: I2abab75aca559162cbf78f7de7da9ff62c4ed1a3
{
LABEL=${1}
MNT_POINT=${2}
- TYPE=$(blkid --match-token LABEL="${LABEL}" -o value -s TYPE | tail -n 1)
+ TYPE=$(blkid --match-token PARTLABEL="${LABEL}" -o value -s TYPE || blkid --match-token LABEL="${LABEL}" -o value -s TYPE | tail -n 1)
if [ "${TYPE}" = "ext4" ]; then
commit_bow_partition "${LABEL}"
elif [ "${TYPE}" = "f2fs" ]; then
LABEL=${1}
DIRECTORY=${2}
- TYPE=$(blkid --match-token LABEL="${LABEL}" -o value -s TYPE | tail -n 1)
+ TYPE=$(blkid --match-token PARTLABEL="${LABEL}" -o value -s TYPE || blkid --match-token LABEL="${LABEL}" -o value -s TYPE | tail -n 1)
if [ "${TYPE}" = "ext4" ]; then
umount_bow_partition "${LABEL}" "${DIRECTORY}"
else