Add '-l' option to blkid for optimization 65/276165/2
authorSangYoun Kwak <sy.kwak@samsung.com>
Fri, 10 Jun 2022 08:23:33 +0000 (17:23 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 10 Jun 2022 08:34:51 +0000 (08:34 +0000)
Change-Id: I8183808210a9fca55e8c754e91da1a986ff27dae
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
scripts/upgrade-legacy.sh

index 73fc85d..5447ed1 100644 (file)
@@ -57,7 +57,7 @@ flash_pre_image() {
                                        { read -r NUM REST; echo "$NUM"; })"
                        fi
                        if [ "$DEV_NUM" == "" ]; then
-                               DEV_NUM=$(/sbin/blkid -L "$PART_NAME" -o device | sed "\|$EMMC_DEVICE|!d" | \
+                               DEV_NUM=$(/sbin/blkid -L "$PART_NAME" -o device -l | sed "\|$EMMC_DEVICE|!d" | \
                                                sed 's/\/dev\/mmcblk0p//')
                        fi
                        if [ "$DEV_NUM" != "" ]; then