mount.sh: automount cdrom device even if no ID_FS_TYPE available
authorChen Qi <Qi.Chen@windriver.com>
Tue, 10 Sep 2013 13:27:55 +0000 (21:27 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Sep 2013 21:58:33 +0000 (22:58 +0100)
commitaa3208109ab28f337d187d2c2d2dc2c7ae27bab5
tree87fcbb123a70a04b7e5084b334bc5a616cee99e5
parent24871253288787e9a32d7425b32113a4a58d46cb
mount.sh: automount cdrom device even if no ID_FS_TYPE available

This script was modified to check whether $ID_FS_TYPE is empty before
automount, however, for cdrom devices on qemu, the ID_FS_TYPE is not
set, yet the device should be mounted. Otherwise, when booting an iso
image with runqemu, the boot process hangs at 'waiting for removable
media'.

This patch fixes this problem by first checking whether the block device
is a cdrom.

[YOCTO #4487]

(From OE-Core rev: 2df21a3b27543df912a3ce05bef2415fae13cb7c)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/udev/udev-extraconf/mount.sh