tizen: sd_fusing_amlogic: wait a bit before creating filesystems
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 13 Nov 2020 10:17:44 +0000 (11:17 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 12 Oct 2022 05:47:56 +0000 (14:47 +0900)
commit2d0bd513b1d5df303291dfb90332f12cb2d8c429
treec6e37391da310d720b8b5a0a17f232baa5e0f61e
parent1acf5f44f2e4d3de781bce31c4449af821076619
tizen: sd_fusing_amlogic: wait a bit before creating filesystems

With Ubuntu 18.04 and slow SD card I've observed that partition scan
takes too much time, so the calls to create filesystems on the created
partitions fail. Partition rescan is done asynchronously so there is no
easy way to check it. Force a 2 seconds delay before creating filesystems
to avoid this issue.

This fixes the following issue:
--->8---
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
mkfs.fat 4.1 (2017-01-24)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
mkfs.vfat: unable to open /dev/sdb1: No such file or directory
mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.

mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.

mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.

mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.

mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.

mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.

mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.

mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.

End /dev/sdb format
--->8---

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I9bcfa9724ae64bff0725000600c579fa9bc33932
scripts/tizen/sd_fusing_amlogic.sh