* [PATCH 0/1] Fix qemu iso image hang problem
@ 2013-09-10 13:27 Qi.Chen
2013-09-10 13:27 ` [PATCH 1/1] mount.sh: automount cdrom device even if no ID_FS_TYPE available Qi.Chen
0 siblings, 1 reply; 2+ messages in thread
From: Qi.Chen @ 2013-09-10 13:27 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <Qi.Chen@windriver.com>
The following changes since commit 2ab1bf27f79beadc45e86a26c85fc0b95ae3496f:
bitbake: prserv: Ensure data is committed (2013-09-08 10:51:56 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib ChenQi/qemu-iso-hang
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/qemu-iso-hang
Chen Qi (1):
mount.sh: automount cdrom device even if no ID_FS_TYPE available
meta/recipes-core/udev/udev-extraconf/mount.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] mount.sh: automount cdrom device even if no ID_FS_TYPE available
2013-09-10 13:27 [PATCH 0/1] Fix qemu iso image hang problem Qi.Chen
@ 2013-09-10 13:27 ` Qi.Chen
0 siblings, 0 replies; 2+ messages in thread
From: Qi.Chen @ 2013-09-10 13:27 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <Qi.Chen@windriver.com>
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]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
| 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh
index 327cfc6..cb57e47 100644
--- a/meta/recipes-core/udev/udev-extraconf/mount.sh
+++ b/meta/recipes-core/udev/udev-extraconf/mount.sh
@@ -58,7 +58,11 @@ rm_dir() {
fi
}
-if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ] && [ -n "$ID_FS_TYPE" ]; then
+# No ID_FS_TYPE for cdrom device, yet it should be mounted
+name="`basename "$DEVNAME"`"
+[ -e /sys/block/$name/device/media ] && media_type=`cat /sys/block/$name/device/media`
+
+if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ] && [ -n "$ID_FS_TYPE" -o "$media_type" = "cdrom" ]; then
if [ -x "$PMOUNT" ]; then
$PMOUNT $DEVNAME 2> /dev/null
elif [ -x $MOUNT ]; then
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-10 13:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-10 13:27 [PATCH 0/1] Fix qemu iso image hang problem Qi.Chen
2013-09-10 13:27 ` [PATCH 1/1] mount.sh: automount cdrom device even if no ID_FS_TYPE available Qi.Chen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.