Consider USB storage without partition table 26/240826/1 submit/tizen/20200812.005037
authorKichan Kwon <k_c.kwon@samsung.com>
Wed, 12 Aug 2020 00:46:38 +0000 (09:46 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Wed, 12 Aug 2020 00:46:38 +0000 (09:46 +0900)
- Somebody can format USB storage without partition table
- In this case, recovery image is stored in /dev/sdX

Change-Id: Ifb3d1f5924d22936433239144d5fd05ae32b3b9d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
scripts/recovery-init.in

index d71cdd3..613f0b0 100644 (file)
@@ -41,7 +41,7 @@ mount_usb_partitions() {
     do
         for ((i=0; i<10; i++))
         do
-            DEVICE=$("$BLKID" /dev/sd?? -t TYPE="${DEVICE_TYPE}" -o device)
+            DEVICE=$("$BLKID" /dev/sd* -t TYPE="${DEVICE_TYPE}" -o device)
             if [ ! -z "${DEVICE}" ]
             then
                 break